Solved

Problems with going to a different scene on button click

Posted on 2007-03-22
3
230 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
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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
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…
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…

743 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

11 Experts available now in Live!

Get 1:1 Help Now