Solved

Using buttons to navigate through scenes??

Posted on 2002-06-19
5
184 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
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

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…
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.
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.

744 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

12 Experts available now in Live!

Get 1:1 Help Now