Solved

Why does this button not work?

Posted on 2011-02-28
4
339 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
Comment Utility
i would switch that with a gotoandstop(frame number);
0
 

Author Comment

by:brucegust
Comment Utility
That did it!
0
 
LVL 10

Expert Comment

by:conagraman
Comment Utility
cool    : )
0
 
LVL 39

Expert Comment

by:blue-genie
Comment Utility
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
FLV versus SWF 11 263
Flash player plugin 13 7 312
Crash with shockwave flash 8 227
Shockwave Flash Object within PowerPoint 2013 2 105
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. …
Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
The goal of the tutorial is to teach the user how to how to record live broadcast.
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now