• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Animate buttons issue

New Here ,
Jun 18, 2020 Jun 18, 2020

Copy link to clipboard

Copied

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?

Views

93

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 20, 2020 Jul 20, 2020

Copy link to clipboard

Copied

LATEST

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();
}

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines