A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: [RESOLVED] Movieclip Button Problems

Threaded View

  1. #1
    Junior Member
    Join Date
    Jan 2016
    Location
    Canada
    Posts
    4

    resolved [RESOLVED] Movieclip Button Problems

    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.
    Code:
    Mouse.show();
    stop();
    startbtn.onRelease = playFrame2;
    function playFrame2():Void{
    	_root.jumpingmanmc.gotoAndPlay(2);
    	_root.blinkingmanmc.stop;
    	_root.finmc.play;
    }
    The code in second frame.
    Code:
    stop();
    Blinkingmanmc.stop();
    restartbtn.onRelease = playFrame1;
    function playFrame1():Void{
    	_root.blinkinggmanmc.gotoAndPlay(1);
    	_root.jumpingmanmc.stop;
    	_root.finmc.play;
    }
    Last edited by Moocow124; 02-21-2016 at 02:27 PM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center