all groups > flash (macromedia) > january 2005 >
You're in the

flash (macromedia)

group:

Looping specific scenes


Looping specific scenes suitelew
1/31/2005 11:16:26 PM
flash (macromedia):
i have a graphic appearing and scrolling across the stage in scene 1, i need
the graphic to scroll endlessly in scene 2. is there a way to loop just one
scene and not go back to the first scene unless it is reloaded.

thanks
Re: Looping specific scenes Jeckyl
2/1/2005 10:19:19 AM
put a label on the first frame of scene 2 (eg "loop")

then on the last frame of scene 2 put script

this.gotoAndPlay("loop");

to make it go back to the frame your labelled "loop"
--
All the best,
Jeckyl

Re: Looping specific scenes suitelew
2/1/2005 9:38:06 PM
sorry, i don't know why i'm not getting this.

in scene 2, i've labelled the first frame in a layer i've named 'actions' and
have added the 'gotoAndPlay' script in the last frame of the same layer. yet,
when it reaches the last frame it loops back to the first scene like it hasn't
even registered.

also, will this script, if i can ever get it to work, loop just scene 2
endlessly.

thanks
Re: Looping specific scenes suitelew
2/2/2005 2:19:50 AM
yes.

something that i did earlier while trying to figure it out was probably causing it to screw up. i started all over and, sure enough, it worked.

Re: Looping specific scenes Jeckyl
2/2/2005 10:03:46 AM
It should work .. hard to know what you've really done without seeing it.
Are you using Test Movie to test it, or just playing the timeline (playing
the timeline will not do scripting)?

And yes .. it will loop endlessly (that's pretty much what you were asking
for), unless you provide some means of stopping it (eg a button that goes to
a frame in another scene when you click on it etc)
--
All the best,
Jeckyl

AddThis Social Bookmark Button