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

Problem with actionscript 3 playing movie

New Here ,
Jun 01, 2013 Jun 01, 2013

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?

TOPICS
ActionScript
398
Translate
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

correct answers 1 Correct answer

LEGEND , Jun 02, 2013 Jun 02, 2013

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

Translate
LEGEND ,
Jun 02, 2013 Jun 02, 2013

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

Translate
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
New Here ,
Jun 02, 2013 Jun 02, 2013
LATEST

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

this.stop();

in frame 149.

Translate
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