Solved

Why does this button not work?

Posted on 2011-02-28
4
342 Views
Last Modified: 2013-11-11
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
Comment
Question by:brucegust
  • 2
4 Comments
 
LVL 10

Accepted Solution

by:
conagraman earned 500 total points
ID: 35000137
i would switch that with a gotoandstop(frame number);
0
 

Author Comment

by:brucegust
ID: 35000257
That did it!
0
 
LVL 10

Expert Comment

by:conagraman
ID: 35000271
cool    : )
0
 
LVL 39

Expert Comment

by:blue-genie
ID: 35000295
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

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Add 'birds singing' to homepage 5 115
What process can I use to achieve this? 5 124
how can i learn adobe flex step by step 4 116
Flash Player Action Script Error 1090 5 216
I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question