Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

need help with actionscript motion tweens

Status
Not open for further replies.

okiiyama

IS-IT--Management
Joined
Jan 3, 2003
Messages
269
Location
US
I've got a movieclip created in actionscript:

LayerMask_MC -- highest depth
Menu_Item_MC
Menu_Item_Label_MC (child of Menu_Item_MC)
Menu_Item_Background_MC (child of Menu_Item_MC)

I would like to create a motion tween for Menu_Item_MC and not for LayerMask_MC. Essentially the motion tween would be just vertical movement downwards. Also, I would like to have a pause in between the creation of each new Menu_Item_MC, so that the entire animation looks staggard, and not like they are being animated at the same time.

I've found and then manipulated some code:
Code:
function menuLoadAnimation() {
        easeType = mx.transitions.easing.Regular.easeOut;
        var begin = -25;
        var end = 0;
        var time = .5;
        var mc = this;
        _yTween = new mx.transitions.Tween(mc, "_y", easeType, begin, end, time, true);
}
I'm curious where I can add like a pause() or a wait() function, so that the entire animation on the stage looks staggard.

Any ideas?

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top