Solved

Why does this button not work?

Posted on 2011-02-28
4
341 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

785 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