This content has been marked as final. Show 6 replies
it doesn't work because anim_mc doesn't exist when your buttons are released. with as2, you can probably get by with _root.gotoAndStop(2); before your anim_mc methods.
I tried this like you said:
boxButton.onRelease = function ()
Thinking it would go to frame 2, then play the movie clip starting on frame "box" within the movie clip. But it doesnt. Of course, it plays frame 2, and the movie clip plays, but only on frame 1 of the movie clip, it does not go to "box" which is in the middle of the timeline of that movie clip.
I guess there is no way to do this?
Accessing labeled frames within a movie clip from a buttion on the main timeline requires that the button be on the same frame?
This seems strange.. I guess.....
if zoom_mc is on frame 2 of the main timeline and if zoom_mc contains a frame labeled "box', that code will work.
I tried it with a brand new movie and it does not work. When I click the button it goes to frame 2, and plays the move clip, but it starts on frame 1 of the movie clip and does not go to the "box" frame, which is frame 5.
ok, it works with the code you gave, thank you. The problem was a stop action on the first frame of zoom_mc. It seems if there is a stop(); on the first frame it will prevent in from jumping to the labeled frames. If I take the stop(); off the first frame of the zoom_mc then the buttons go directly to the labeled frames. thanks again.
but having a stop() on the first frame of zoom_mc should cause a problem.