PDA

View Full Version : tween loading from bottom to top _y question!!??



pares101
March 8th, 2009, 03:09 AM
dude how do i make it so new Tween(maio_mc, "_y", Elastic.easeOut, 5, 132, 3, true);

load from the bottom and not the top to bottom??

i tried -_y -y ?????

Is it possible for me to set a location from where the tween starts from????


:hr:

snickelfritz
March 8th, 2009, 03:40 AM
TweenMax can do this very easily.
Simply place your movieclip at it's final destination on the stage.
Then use the "from" method in TweenMax to specify the starting point for the tween.
The following tween starts at the bottom of the stage and tweens to the current location for MovieClip "mc".
Download the classes and experiment with it.

import gs.TweenMax;
import gs.easing.*;

TweenMax.from(mc, 3, {y:stage.stageHeight, ease:Elastic.easeOut});

pares101
March 8th, 2009, 03:48 AM
SWEEEEEEET!!!! now another follow up question , i have 2 tweens i want the 2nd one to start 15 seconds later

new Tween(maio_mc, "_x", Elastic.easeOut, 5,1223.9, 3, true);
new Tween(qs_mc, "_y", Elastic.easeOut, 5, 264, 4, true);

qs_mc needs to start 15 secs later... now what?!