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:
system
January 8, 2003, 2:31am
2
onClipEvent (enterFrame) {
if (this._currentframe == this._totalframes) {
_root.gotoAndPlay(2)
} else {
_root.stop()
}
}
place it on the mc actions
system
January 8, 2003, 2:33am
3
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
system
January 8, 2003, 2:43am
4
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]
system
January 8, 2003, 2:50am
5
that had no affect
would you like to see my fla?
system
January 8, 2003, 2:54am
6
yep … post your fla (-:
it would be easier for me
system
January 8, 2003, 2:57am
7
here’s my fla, i deleted the areas of code we had first used.
system
January 8, 2003, 3:01am
8
what’s the mc you want it to finish? the brain?
system
January 8, 2003, 3:10am
9
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
system
January 8, 2003, 3:14am
10
this is so weird … I can’t get it to work in your file
look at the attachment :-\
system
January 8, 2003, 3:22am
11
I’m soo stupid
I had a sintax error :crazy:
system
January 8, 2003, 3:26am
12
i ended up using this…
removeMovieClip(_root.nextFrame());
this one actually worked.