Solved

Using buttons to navigate through scenes??

Posted on 2002-06-19
5
228 Views
Last Modified: 2010-04-03
I am new to Flash.

I have four different buttons and would like use them to navigate through four different scenes.  What steps would I need to take to accomplish this?

Thanks.
0
Comment
Question by:Bourberra
[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
  • 2
5 Comments
 
LVL 6

Accepted Solution

by:
rootdir earned 25 total points
ID: 7094664
Simple,

If your buttons are inside same movie then you have to write action script

on(release){
    gotoAndPlay("Scene name", frame no);
}

like

on(release){
    gotoAndPlay("Scene 1", 1);
}

another button

on(release){
    gotoAndPlay("Scene 2", 50);
}

if your buttons are on seperate menu movie which is loaded inside main movie then you have give full path such as

Suppose you loaded "menu.swf" movie inside main movie with instace name 'myMenu' then,

you have to call

on(release){
    _root.gotoAndPlay("Scene name", frame no);
}

or

on(release){
    _level0.gotoAndPlay("Scene name", frame no);
}

Similarly you can goto any scene, any frame, any movie.

I think this will help you lot

Cheers

RootDir
0
 
LVL 23

Assisted Solution

by:Zeffer
Zeffer earned 25 total points
ID: 7109288
//Suppose you loaded "menu.swf" movie inside main movie with instace name 'myMenu' then,

you have to call

on(release){
   _root.gotoAndPlay("Scene name", frame no);
}



I think you might have lost Bourberra here rootdir...

shouldn't it read..

on(release)
with (_root.myMenu){
   gotoAndPlay("Scene name", frame no);
}

Otherwise..Good answer!


0
 
LVL 6

Expert Comment

by:rootdir
ID: 7109350
thanks zeffer for correction
0
 
LVL 9

Expert Comment

by:OBCT
ID: 10331313
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Split between rootdir and Zeffer.

Please leave any comments here within the next four days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

OBCT
EE Cleanup Volunteer
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

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
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…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user how to how to record live broadcast.

623 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