1 Reply Latest reply on Feb 11, 2017 12:31 PM by robdillon

    HELP!!! code problems in animate

    celiap81876817

      Hi! I've got a problem with the code of my game in animate and I hope you'll help me. I've got two frames in the timeline, one for the intro and the other one for the game. In the first one i've got a start button with the next code:

      stop();

       

       

      Start.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler);

       

       

      function fl_MouseClickHandler(event:MouseEvent):void

      {

        nextFrame ();

      }

       

      and it works but if I put it the game doesn't work and if I remove it the game works. Do you know what's happening? I'll be very grateful if you answer it because I have to deliver it soon. Thanks in advance!!

       

      [Moved from the non-specific Coding Corner to a product-specific support forum - moderator]

        • 1. Re: HELP!!! code problems in animate
          robdillon Most Valuable Participant

          OK, you have a button named "Start" on frame 1 along with the code above.  You say the code works but the game doesn't work. Is the the code for the game on frame 2? Do you get any error messages when you test the movie? If you leave out the code for the Start button are you also leaving off the stop(); in frame 1?

          1 person found this helpful