Skip to main content
Participating Frequently
June 18, 2020
Question

Animate buttons issue

  • June 18, 2020
  • 1 reply
  • 139 views

I have 4 frames with next/prev frame buttons using action script. Everything works except on the 4th frame if I decide to go back to the 3rd frame, I cannot go forward again unless I go all the way back to the 1st frame. Once I arrive back to the 1st frame, I can do whetever I want again unless I arrive at the 4th frame again, then it's the same deal, need to go back to 1st frame to do what I want again.

 

What's going on?

    This topic is closed to new replies. Start a new post to keep the conversation going.

    1 reply

    Community Expert
    July 21, 2020

    make sure you are using this code.

     


    /* Click to Go to Next Frame and Stop
    Clicking on the specified symbol instance moves the playhead to the next frame and stops the movie.
    */

    movieClip_1.addEventListener(MouseEvent.CLICK, fl_ClickToGoToNextFrame);

    function fl_ClickToGoToNextFrame(event:MouseEvent):void
    {
    nextFrame();
    }

    /* Click to Go to Previous Frame and Stop
    Clicking on the specified symbol instance moves the playhead to the previous frame and stops the movie.
    */

    movieClip_1.addEventListener(MouseEvent.CLICK, fl_ClickToGoToPreviousFrame);

    function fl_ClickToGoToPreviousFrame(event:MouseEvent):void
    {
    prevFrame();
    }