Message Board AS3/PHP/MySQL

Posted March 7th, 2010 in Flash Component, Portfolio by Jimi Sulaiman

Minimum Requirements:

  • Flash CS3 or latest
  • MySQL Database 5 or latest
  • PHP 5 or latest enabled web server

Features:

  • Easy to setup.
    You can now create the required MySQL table so much easier without the need for a Database manager or SQL file by using the setup file.
  • Easy navigation.
    Browse through pages using the next/previous button, refresh manually to view
    latest messages and scroller with easing effect and mouse wheel enabled.
  • Circle (rotating) preloader.
    Visible during PHP calls
  • Simple admin included.
    For easy housekeeping – delete unwanted messages, approve messages.
  • New cool Interface.
    GUI inspired by iPhone applications. PSD file included for customization.
  • Actionscript 3.0
    Faster and much cleaner codes

Click here to purchase

  • Share/Bookmark

Movie Clip Positioning on Stage controller

Posted February 26th, 2010 in Flash Component, Portfolio by Jimi Sulaiman

Updated! Now available in Actionscript 2.0 and Actionscript 3.0. Custom built in Function for easier control of movieclip positions on the movieclip’s stage.

Usage Example

Actionscript 2.0

registerMc = [movieclipA,movieclipB];
positionMcOnStage(movieclipA,"TC"); //position myMovieclip to the top-center of your stage.
positionMcOnStage(movieclipB,"BL");

Acionscript 3.0

//import the Controller class
import com.jimisulaiman.tween.*;
//initialize the controllers
var myMcController:Controller = new Controller(myMovieclip);
//tween movieclip!
myMcController.positionMcOnStage("C");

With AS3 version, you don’t need to add stage listener into the timeline/frame; Its all built-in into the class.

Click here for demo

Click here to buy

  • Share/Bookmark

AS3 Preloader

Posted February 16th, 2010 in Actionscript 3.0, Codes, Flash Component, Source Files by Jimi Sulaiman

Another Flash Preloader created today. Click on image to try.

In this example, the preloader will appear when the method loadMovieToContent is called from the button click event. Simply set the swf file or the image to be loaded as the parameter for this method.

The source code:

package com.jimisulaiman
{
	import flash.display.Sprite;
	import flash.events.*;
	import flash.display.MovieClip;
	import flash.display.Loader;
	import flash.net.*;

	/*
	Code by jimisulaiman.com on 16 February 2010
	*/

	public class Preloader extends Sprite
	{
		//constructor
		public function Preloader()
		{
			//add listeners to the button
			load_swf_btn.addEventListener(MouseEvent.CLICK,clickHandler,false,0,true);
			load_img_btn.addEventListener(MouseEvent.CLICK,clickHandler,false,0,true);
			//on loaded, hide preloader
			myPreloader.visible = false;
		}

		//set variables
		var perLoaded:Number = 0;
		var loader:Loader;

		//initialize
		protected function initHandler(event:Event):void
		{
			//show preloader, reset back to zero
			myPreloader.visible = true;
			perLoaded = 0;
		}
		//using onEnterFrame might comes in handy, so I'm just gonna use it here
		protected function enterFrameHandler(event:Event):void
		{
			//set the percentage text%
			myPreloader.per.text = perLoaded + "%";
		}
		protected function progressHandler(event:ProgressEvent) {
			//calculate the percentage loaded
			perLoaded = Math.round((event.bytesLoaded/event.bytesTotal)*100);
			trace("progress:  "+perLoaded+"%");
		}
		private function completeHandler(event:Event):void {
			trace("completed!");
			myPreloader.visible = false;
			//place the loaded movieclip to the content area
			myContent.placer.addChild(loader);
		}

		public function loadMovieToContent(mymovie:String):void {
			trace("Loading "+mymovie);
			//new loader everytime
			loader = new Loader();
			//add those listeners
			loader.contentLoaderInfo.addEventListener(Event.OPEN,initHandler);
			loader.addEventListener(Event.ENTER_FRAME,enterFrameHandler);
			loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,progressHandler);
			loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler);
			//load it!
			loader.load(new URLRequest(mymovie));
		}

		//set the buttons behaviour
		protected function clickHandler(event:MouseEvent):void
		{
			switch( event.target )
			{
				case load_swf_btn:
				    //trace("button clicked!");
				    loadMovieToContent("content/myswf.swf");
					break;
				case load_img_btn:
				    loadMovieToContent("content/image.jpg");
					break;
			}
		}

	}

}

Download full source code here:  AS3 Preloader (61)

  • Share/Bookmark

Panoramic Image Viewer XML 1.5

Posted September 7th, 2008 in Flash Component by Jimi Sulaiman

Functions includes draggable image, horizontal drag bar, play button, dropdown image selection and its XML.

Website: http://brudigital.com/panoramic

Available for sale here: http://flashden.net/item/panoramic-image-viewer-xml/5992

  • Share/Bookmark

Basic Dynamic ComboBox

Posted August 30th, 2008 in Flash Component by Jimi Sulaiman

Easy to use custom dynamic combobox for your flash projects.

Features:

- Easy to customize
- Built in custom functions
- Easy to use
- Scroller shown on longer list

Requirements:

- Flash 8/CS3
- Actionscript 2.0

Available For sale here: http://flashden.net/item/basic-dynamic-combobox-/17077

  • Share/Bookmark
Page 1 of 41234