all groups > macromedia flash sitedesign > april 2005 >
You're in the

macromedia flash sitedesign

group:

linking to other scenes



linking to other scenes n is fine
4/30/2005 11:34:14 AM
macromedia flash sitedesign: hi
im relativley knew to designing websites in flash and i hav a really nooby
question

i want to be able to link from one scene to another - ive used the tutorial
but i cant get the actionscript to work and im no entirely sure how u add it to
a button

any suggestions anyone ?
Re: linking to other scenes Flashkernel
4/30/2005 12:56:20 PM
you can use gotoAndStop or gotoAndPlay for this.

gotoAndStop(<scene name>,<frame label>/<frame number>)
Re: linking to other scenes NOOOO!!! Jeckyl
5/1/2005 12:00:00 AM
[quoted text, click to view]

NOOOO !!!!

DO not EVER EVER use that syntax.. it is buggy and will fila in all sorts of
situations.

You should NEVER use a scene name in a gotoAndStop or gotoAndPlay

You should NEVER use gotoAndStop or gotoAndPlay without a dot-prefix (like
_root.gotoAndPlay or _parent.gotoAndStop, or this.gotoAndPlay etc etc)

The advice given here will results in all sorts of problem for you in the
future. PLEASE ... do NOT do as the poster here has suggested.

--
Jeckyl

Re: linking to other scenes NOOOO!!! n is fine
5/1/2005 12:00:00 AM
thanks 4 ur help
but can u give me tha action script 2 link to anotha scene plz
Re: linking to other scenes NOOOO!!! Jeckyl
5/1/2005 12:00:00 AM
on(release) {
this.gotoAndPlay("mylabel"); // where 'mylabel' is a label you put on a
frame in the other scene
}
--
All the best
Jeckyl

Re: linking to other scenes NOOOO!!! Kaare
5/2/2005 12:00:00 AM
Btw 'n is fine', just so you get the idea of scenes...

Scenes are simply a way for you, as a Flash designer, to divide the main
timeline up into several timelines. Each and every scene in a movie is a
continuation of the main timeline, the _root of your movie. Therefore, the
_root.gotoAndStop("myFrameLabel"); will work across all scenes, as it's the
same timeline.

Jeckyl is absolutely correct - do not ever use a scene identifier syntax in a
goto method. I might even go further by saying, don't even use scenes... You
don't need them, not really. Personally I never do... It annoys me having to go
from scene to scene, having artwork lying around in weird places and such. And
why bother? It's easier to have one main timeline and have a more easily
assecible movie by using different movieclips appropriately.

Just my 2 cents ...
Re: linking to other scenes n is fine
5/3/2005 12:00:00 AM
Re: linking to other scenes Flashkernel
5/3/2005 5:59:18 AM
AddThis Social Bookmark Button