Skip to main content
Participant
June 2, 2013
Answered

Problem with actionscript 3 playing movie

  • June 2, 2013
  • 2 replies
  • 415 views

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?

This topic has been closed for replies.
Correct answer Ned Murphy

There is nothing wrong with the code you show.  Look for something else, such as a stop(); command in frame 149

2 replies

Participant
June 2, 2013

You are amazing!  Thank you.  I've been going crazy with this.  there *was* a

this.stop();

in frame 149.

Ned Murphy
Ned MurphyCorrect answer
Legend
June 2, 2013

There is nothing wrong with the code you show.  Look for something else, such as a stop(); command in frame 149