there is a class out there called TweenExtended...it works exaclty the same way as the Tween class, excpet you pass in arrays for the properties you want to tween, and their corresponding starts/finish values.
http://www.sqcircle.com/downloads/ On 8/1/06, Matthew Ganz <[EMAIL PROTECTED]> wrote:
hi. i'm using the tween class to move a map movie clip's x and y properties. so whichever state the user clicks on my US map movieClip, it gets centered on the stage. it works great like this: public function expand(activeState:MovieClip) { var nX:Number = (Stage.width/2) - activeState._xmouse; var nY:Number = (Stage.height/2) - activeState._ymouse; // move it to the center of the stage. new Tween( activeState, "_x", Strong.easeOut, activeState._x, nX, 2, true ); new Tween( activeState, "_y", Strong.easeOut, activeState._y, nY, 2, true ); } the problem comes when i introduce two new tweens to scale the map as well. the result is that the x and y don't appear to move but the scale tween does work. public function expand(activeState:MovieClip) { var nX:Number = (Stage.width/2) - activeState._xmouse; var nY:Number = (Stage.height/2) - activeState._ymouse; // move it to the center of the stage. new Tween( activeState, "_x", Strong.easeOut, activeState._x, nX, 2, true ); new Tween( activeState, "_y", Strong.easeOut, activeState._y, nY, 2, true ); // zoom into the map new Tween( activeState, "_xscale", Regular.easeOut, activeState._xscale, 500, 2, true ); new Tween( activeState, "_yscale", Regular.easeOut, activeState._yscale, 500, 2, true ); } are there problems tweening multiple properties at once? has anyone experienced this before? thank you. -- matt. _______________________________________________ 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
_______________________________________________ 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