i’m new to as3.0.
so i’m learning to use the native tween class in Flash cs3.
the tutorial i was using had me write the following code on the same layer as i was placing my objects (just for teaching purposes). so i nailed the tween concept, but i know that common procedure is to put actions on one layer and your content on another layer(s).
but when i cut and paste my code to a new layer the movie doesn’t work. i was thinking i need to add an addChild or something to make things work. also, the tutorial never mentioned anything about the linkage so i think that’s key, too.
my question is what do i need to add to make my movie work now that the actions and objects are on different layers. i was thinking an addChild and stuff. but i’m not sure
any help would be great, thanks
here’s the code.
import fl.transitions.Tween;
import fl.transitions.easing.*;
var myTweenX:Tween = new Tween(mysquare_mc,"x",Regular.easeOut,-100,250,1,true);
var myTweenY:Tween = new Tween(mysquare_mc,"y",Regular.easeOut,-100,288,1,true);
var myTweenAlpha:Tween = new Tween(mysquare_mc,"alpha",Regular.easeOut,0,1,5,true);
myTweenX.start();
myTweenY.start();
myTweenAlpha.start();