Solved

Why does this button not work?

Posted on 2011-02-28
4
344 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

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…
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

734 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