Delaying a function

Hi! my name is mayhem and I am STUCK.

I would like to know how I can trigger a function, once another function is done moving it’s clip across the stage.

i have this code:
[AS]
case 1 :
tab0.onEnterFrame = function() {
//close calendar
tab0.moveMe(_global.closedPos[0], 0, 6);
//Wait for Calendar to close
tab0.moveMe(_global.openPos[0], 0, 6);
tab1.moveMe(_global.openPos[1], 0, 6);
};
break;

[/AS]

it’s part of a switch/case statement that closes tab0 then opens tab0 along with tab1, they are next to each other on the stage.
basically tab0’s contents is displayed, then it closes next to tab1, and then tab1 opens, taking the minimized tab0 with it.

see an example of the menu’s nasty looking alpha version here:
brewcos.swf

Pardon me for not being a good poster.

mayhem

The idea is presented here: http://www.kirupa.com/developer/mx/preloader_transition.htm (if I understood what you wanted… :))

thanks, i suck at posting… sorry, it’s why I lurk.

I went back and tried to explain better, and added a link to my project…

this is exactly what I was looking for.

[AS]
moveTab(0,_global.closedPos[0]);
doOnce = setInterval(moveTab, 900, 0, _global.openPos[0]);
doOnce = setInterval(moveTab, 1000, 1, _global.openPos[1]);
[/AS]