Delayed movie clip

here’s another surely simple question to answer.

In my movie I have 2 frames, i don’t want to play frame 2 until the movie clip in frame 1 is complete. what action do i use and do i place this action in the movie clip timeline or the main timeline?

:chinaman:

onClipEvent (enterFrame) {
     if (this._currentframe == this._totalframes) {
          _root.gotoAndPlay(2)
     } else {
          _root.stop()
     }
}

place it on the mc actions :smirk:

i tried pasting it and got this error:

Clipboard Actions: Line 1: Clip events are permitted only for movie clip instances
onClipEvent (enterFrame) {

Clipboard Actions: Line 17: Operator ‘–’ must be followed by an operand

ok … let’s try something different


stop()
mcInstanceName.onEnterFrame = function () {
	if (this._currentframe == this._totalframes) {
		_root.gotoAndStop(2)
	}
}

now place those actions in the main timeline
and don’t forget to replace ‘mcInstanceName’ with the actual name of your movie clip

[size=1][EDIT]
use _root.gotoAndPlay(2) or _root.gotoAndPlay(2) according your needs
I just realized that I use them both[/size]

that had no affect

would you like to see my fla?

yep … post your fla (-:

it would be easier for me

here’s my fla, i deleted the areas of code we had first used.

what’s the mc you want it to finish? the brain?

yea, i want the movie clip in frame 2 to play so that when the clip gets to the part where it says “beginning transport” the brain zoom sequence begins

this is so weird … I can’t get it to work in your file

look at the attachment :-\

I’m soo stupid :stuck_out_tongue:

I had a sintax error :crazy:

i ended up using this…

removeMovieClip(_root.nextFrame());

this one actually worked.

this one actually worked
ehmm … and mine doesn’t? :sleep: