PDA

View Full Version : Movie Clip to timeline issues


TehChaser
09-15-2010, 08:05 PM
i know im doing this a dumb way but i need some help

i have 3 scenes. the first in just an opening animation

the other two scenes have the same movie clips on frame 1, but different things on frames 2 and 3

in the movie clip, i have buttons that lead to frame 2 or frame 3

the code i have is

on(release){
_root.gotoAndStop(2);
}

which should work, but for some reason it goes to scene 1's frame 2 rather than the scene the movie clip is on.

i cant use frame lables in this case because the same movie clip is reused to go to a different thing. is this even possible to do?

lujan30
09-16-2010, 06:38 PM
Hello,
Try to use 'this' instead of '_root', that points to stay in the scene you're having your movie clips

on(release){
this.gotoAndStop(2);
}

hope it helps !