Solved

Problems with going to a different scene on button click

Posted on 2007-03-22
3
244 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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone 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. …
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 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…
The goal of the tutorial is to teach the user how to how to record live broadcast.

707 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