Frame delay action?

Hey I’m trying to create a delay action on a button in a flash movie. Basically I want the first part of the action to perform immediately- gotoAndPlay(“launchwin_sm”); but the second and third parts to have a frame delay. Is this possible? Ive seen some that use a time delay is a frame delay possible?

Here’s the code at the minute.

on (release) {
gotoAndPlay(“launchwin_sm”);
setProperty(“missiontext”, _visible, “1”);
setProperty(“servicestext”, _visible, “0”);
}

Here’s the link online if what I’m saying doesn’t make sense. http://jmountain.com/new/seg1.html When you click on mission at the top right the text is coming in too quickly. I don’t want it to appear until after the window has fully opened.

Any help/advise/improvements here would be appreciated.

Thanks
Jim

You can use setInterval for that:)
On your button:

on (release) {
	gotoAndPlay("launchwin_sm");
	id=setInterval(waitaWhile, 50);
}

"50’ is the time to wait in msecs, change it to the value you want;)
And the function (on a frame):

function waitaWhile() {
	clearInterval(id);
	missiontext._visible = 1;
	servicestext._visible = 0;
}

scotty(-: