PDA

View Full Version : Wait for a clip to finish before continuing rest of script..


rastaroofus
09-20-2002, 03:21 AM
Hi,

I want to create a menu where the sub-menus appear and disappear. I want to make a sub-menu disappear before calling on another sub-menu appear. I've seen it done but the ones I've seen just delays (by using empty timeframes) the appearance of the sub-menu. This, however, requires using two different mc's for the same sub-menu. One w/o delay, one with delay.

I'd like to use actionscript to either:

1 - Wait for the mc, where the sub-menu disappears, to finish before starting the mc where a new sub-menu appears. From my understanding if I did the following:

on (release)
{
tellTarget ("submenu1")
{
gotoAndPlay("disappear");
}

tellTarget ("submenu2")
{
gotoAndPlay("appear");
}
}

mc submenu1 and mc submenu2 will play simultaneously and all I get is junk. :)

2 - Add some kind of delay on when the new sub-menu appears using code.

Does this make sense? Can anyone help me. If there are any really good tutorials out there can anyone please email me the link. I'm thinking of creating a lot of menu items with submenus, and think that duplicating mc's with delays in them is a waste of time and not code friendly.

thanks!

farafiro
09-22-2002, 12:55 PM
look for the word "delay" in the library or movie sections