Sep 19

One of the biggest changes to Actiosncript 3.0 for me (which took me forever to figure out) is the method to add an object from the library by its identifier, in case that identifier was ordered.

take this screenshot for example:

library.jpg

to add an instance of the switchButtons movieClip to the stage all you have to write is:

var sb = new switchButtons();
stage.addChild(sb);

Read the rest of this entry »




Sep 19

to use the Fuse classes in a custom Actionscript class, here's how it works:

import com.mosesSupposes.fuse.*;

class customClass{
	// constructor
	function customClass(){

 		// this has to be called in the
		// constructor function or the
		// onLoad function to register the classes

		ZigoEngine.register( Fuse, PennerEasing );

		var AnimVarFuse = new Fuse();

		AnimVar.push(
				{
					target:this.child_mc,
					alpha:100 ,
					seconds:0.5,
					delay:0.5
				},

				{
					scope:this,
					func:functionName
				}
			);

		AnimVar.start();

	}

	function functionName(){

		// this is a function that will be called
		// once the animation is over
		// the scope refers to where
		// the function is declared.. the scope
		// can be _root if the function is on
		// the highest level

	}

}

Read the rest of this entry »




Next Entries »