Groups | Blog | Home
all groups > macromedia flash sitedesign > september 2003 >

macromedia flash sitedesign : gotoAndPlay in different Scene's


Sam Granger
9/29/2003 12:01:29 PM
I'm currently trying to make a Website with different Scene's. In each scene, theiris the same menu. But when i go to another Scene, and try to open a link, it opens the link in the first Scene, and not in the Scene i want it to. I'm now changing all links in all the Scene's (eg. on(release) { gotoAndPlay ("Scene2", 1) {) Is there a easier wayn of doing this, because theirs loads of links. Can't i tell the link somehow to open the frame in the same Scene, so i can copy and paste the menu in all of the Scene's, without relinking all links in each Scene?on(release) { gotoAndPlay ("Scene2", 1) {

morksinaanab
9/29/2003 12:39:31 PM
use labels for your frames and refer to them accordingly:

on frame 1 : "mylabel"

gotoAndStop("label");

this works independent of scens, make sure you have unique labels though

Sam Granger
9/29/2003 12:50:41 PM
That would take a a long time to do. is their anyway to say gotoAndPlay ("currentscene", 598)??

Peter Blumenthal
9/29/2003 4:02:47 PM
you can only refer to scene names for navigation in the root of your movie.
so while on the root a gotoAndPlay("mySceneX",1) works, it won't do so from
a nested mc or button. If you need to put _root.gotoAndPlay("mySceneX",1),
it WON'T work.

As morksinaanab says, use labels, or you can use frame numbers without the
scene name, giving it the total number of frames - ie if you had scene1 with
20 frames, and wanted to go to frame 10 of scene2, you could say
gotoAndPlay(30). this obviously becomes confusing very quickly though. Frame
lables are the way forward! I actually stopped using scenes altogether years
ago.

hth

}`¬P

AddThis Social Bookmark Button