I just keep my own static Animation class handy, which simplifies the
tween and transition classes:

import mx.transitions.*;
import mx.transitions.easing.*;

class com.boa.effects.Animate{
        
        public static function fadeIn(clip:MovieClip,
time:Number):Object{
                return new Tween(clip, "_alpha", Regular.easeIn, 0, 100,
time,                   true);
        }       

        //...etc.
}

I can create custom animations with simple names, and custom parameters
based on how many arguments I want to worry about.  So then in my .fla,
I call the static function I want, like this:

import com.boa.effects.Animate;
myMotionTween = Animate.fadeIn(myClip, 3);

//Then use what's return to trigger the next animation:
myMotionTween.onMotionFinished = function(){
        //do the next thing when the animation is 
        //finished.
}

Wrap that in a creative way into arrays/loops and you've got simple
sequential animation.

Instead of a static class like above, you could also write one that
extends movie clip and adds animation methods. Then associate your movie
clip with that class.

Jason Merrill
Bank of America 
Learning & Organizational Effectiveness
 
 
 
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to