问题
I am making a Flash Presentation, so each animation is within a movie clip (movie_mc). This movie clip has a key frame holding each animation (4 keyframes/animated slides). The first movie instance/slide is called "slide1871". I labeled the first frame within this movie "slide1871". My buttons are on the main timeline.
I CANNOT get the code to work to link to play the first frame of movie slide1871 (within movie_mc). It either doesn't work at all, or it plays the 4 keyframes of the 4 slides I have within movie_mc.
This plays the 4 keyframes:
btn1871.addEventListener(MouseEvent.CLICK, btn1);
function btn1(event:MouseEvent):void
{
movie_mc.gotoAndPlay("slide1871");
}
I've tried a bunch of other stuff that the button doesn't even work. Please help, hopefully this makes sense.
来源:https://stackoverflow.com/questions/16531900/button-to-play-a-movie-within-a-movie-in-actionscript-3-presentation