Hello, I need help! Okay, I have a movieclip inside a scene... And when you double click on the movie clip, you see the movie clip editing thing right? Then I created a movie clip there. Then at the main scene, i made a button and code is: on (release) { subMovieclip.play(); } then when it is pressed, it plays the subMovieclip then at the end (the subMovieclip, i made it so that it stops (paused) and when I press next on the main scene it doesn't advance because it is stoped in the subMovieclip... is there something I can do so that when subMovieclip is done playing, it pauses and when in the main scene, i press "next" it goes to the next frame? Thank You all Keehun Nam
Put all your code in the first frame of your scene and call all the shots from there. This is some code I use for slideshows all the time. "controller" is a movieclip that contains "rewButton" (and others). "slideShow" is the clip that's being controlled by the buttons. The two paths you need to have right are the one for the button and the one for the clip being controlled. The slideShow clip is not inside the controller clip. Remember that the path contains the movieclip instances, not the clip names. controller.rewButton.onPress = function() { slideShow.gotoAndStop(1); } controller.pauseButton.onPress = function() { slideShow.stop(); } controller.playButton.onPress = function() { slideShow.play(); }
Don't see what you're looking for? Try a search.
|