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 »