Solved

Problems with going to a different scene on button click

Posted on 2007-03-22
3
239 Views
Last Modified: 2012-06-27
Hi,

I am trying to add an action to a button in Flash. The button should basically take you to frame one of the scene "mainQuiz". However while the trace command gives the correct output the gotoAndPlay command doesnt do anything.

on (release) {
      trace("testing");
      gotoAndPlay("mainQuiz",1);
}

Am i missing something here?
0
Comment
Question by:rflook
[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
3 Comments
 
LVL 5

Accepted Solution

by:
sg3003 earned 63 total points
ID: 18773029
check that mainQuiz is on the same frame. If it already is try changing the code to:

on (release) {
      trace("testing");
     mainQuiz.gotoAndPlay(1);
}
0
 
LVL 37

Assisted Solution

by:CyanBlue
CyanBlue earned 62 total points
ID: 18773117
Utilize the frame label...

Go to the frame 1 of the mainQuiz scene and add a frame lable of 'mainQuizScene' and use that like this...

_level0.gotoAndPlay("mainQuizScene");

CyanBlue
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

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. …
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
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.

730 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