Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Using buttons to navigate through scenes??

Posted on 2002-06-19
5
Medium Priority
?
236 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
  • 2
4 Comments
 
LVL 6

Accepted Solution

by:
rootdir earned 100 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 100 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
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 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.

824 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