Copy link to clipboard
Copied
I need two buttons in my movie to play specific portions of my timeline. My actionscript looks like this:
btnConnect.addEventListener(MouseEvent.CLICK, play_btnClickHandler);
function play_btnClickHandler(ev:MouseEvent):void
{
this.gotoAndPlay(1);
}
btnBranded.addEventListener(MouseEvent.CLICK, play_btnClick);
function play_btnClick(ev:MouseEvent):void
{
this.gotoAndPlay(149);
}
The first button works fine. The second button just goes to frame 149 and stops. What am I doing wrong?
There is nothing wrong with the code you show. Look for something else, such as a stop(); command in frame 149
Copy link to clipboard
Copied
There is nothing wrong with the code you show. Look for something else, such as a stop(); command in frame 149
Copy link to clipboard
Copied
You are amazing! Thank you. I've been going crazy with this. there *was* a
this.stop();
in frame 149.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now