?
Solved

Problems with going to a different scene on button click

Posted on 2007-03-22
3
Medium Priority
?
248 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 252 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 248 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
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…
The goal of the tutorial is to teach the user how to how to record live broadcast.
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.
Suggested Courses

752 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