I hope the following will become understandable…
I have 6 menu items that I want to tween in, but not all at once but slowly after each other.
This is one of my probs that I would like to know…
I have a tween class as below and rather than repeat the same tween class for several itmes i have I would like to pass the name of the mc to a tween function but not having much success:
heres what I would ideally want:
so I have this one …
var newYPos:Tween = new Tween(theMcID.menuOne, “_x”, Regular.easeOut, 0, 100, 3, true)
then just after this one has fired I would like to start the next one
EG
var newYPosA:Tween = new Tween(theMcID.menuOne, “_x”, Regular.easeOut, 0, 100, 3, true)
then
var newYPosB:Tween = new Tween(theMcID.menuTwo, “_x”, Regular.easeOut, 0, 100, 3, true)
but this does both at same time.
now I have put/used the:
newYPoAs.onMotionFinished = function…
to start the next , but it has to wait for the tween before to complete whcih is not what I am after I would like it to flow in 1,2,3,4,5,6 etc.
also to do this for all six I think is a bit clumpy probably a much better way to do this:
var newYPosA:Tween = new Tween(theMcID.menuOne, "_x", Regular.easeOut, 0, 100, 3, true);
newYPosA.onMotionFinished = function(){
var newYPosB:Tween = new Tween(theMcID.menuTwo, "_x", Regular.easeOut, 0, 100, 3, true);
newYPosB.onMotionFinished = function(){
var newYPosC:Tween = new Tween(theMcID.menuThree, "_x", Regular.easeOut, 0, 100, 3, true);
newYPosC.onMotionFinished = function(){
var newYPosD:Tween = new Tween(theMcID.menuFour, "_x", Regular.easeOut, 0, 100, 3, true);
newYPosD.onMotionFinished = function(){
var newYPosE:Tween = new Tween(theMcID.menuFive, "_x", Regular.easeOut, 0, 100, 3, true);
newYPosE.onMotionFinished = function(){
var newYPosE:Tween = new Tween(theMcID.menuSix, "_x", Regular.easeOut, 0, 100, 3, true);
}
}
}
}
}
Ideally I am after the following:
var newYPosE:Tween = new Tween(theMcID.menuSix, “_x”, Regular.easeOut, 0, 100, 3, true);
wait a second, then fire the next , then the next then the next.
Well if any one has any ideas it will be appreciated
me