• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 349
  • Last Modified:

Why does this button not work?

Brand new to ActionScript 3. Here's my code:

video_button.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler2);
function mouseDownHandler2(event:MouseEvent):void
{
      nextScene();
}

It goes to the next scene, which is a video, but while I hear the sound, I don't see the video itself. Instead I just continue to see scene one. What am I doing wrong?
0
brucegust
Asked:
brucegust
  • 2
1 Solution
 
conagramanCommented:
i would switch that with a gotoandstop(frame number);
0
 
brucegustPHP DeveloperAuthor Commented:
That did it!
0
 
conagramanCommented:
cool    : )
0
 
blue-genieCommented:
yeah agree - where possible i would actually recommend against using scenes.
Also to make life easier for yourself, use  a frame label rather than a frame number, that way if you add frames at a later stage, you don't have to change your code.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now