I have a start button(startbtn) and a restart button(restartbtn) on different layers as shown in the picture. On the finished layer I have a movieclip that I want to loop no matter what(finmc). On the Jumping Man layer, on the first frame I have blinkingmanmc that I want to loop until I click. When I click, I want to have the movieclip on the second frame (jumpingmanmc) play and then go back to blinkingmanmc.
Right now, blinkingmanmc and finmc loop and nothing happens when I click.
Thank you in advance.
P.S. The mouse.show is something interacting with a different scene, so you can ignore it.
flash0.PNG
The code in first frame.
The code in second frame.Code:Mouse.show(); stop(); startbtn.onRelease = playFrame2; function playFrame2():Void{ _root.jumpingmanmc.gotoAndPlay(2); _root.blinkingmanmc.stop; _root.finmc.play; }
Code:stop(); Blinkingmanmc.stop(); restartbtn.onRelease = playFrame1; function playFrame1():Void{ _root.blinkinggmanmc.gotoAndPlay(1); _root.jumpingmanmc.stop; _root.finmc.play; }




Reply With Quote
