This content has been marked as final. Show 3 replies
Try setting the variables on frame one. Then loop on frames 2 thru
Dan (Mode) Smith
--> Adobe Community Expert
*Flash Helps* http://www.smithmediafusion.com/blog/?cat=11
*THE online Radio* http://www.tornadostream.com <--check this
***Stop Piracy http://www.adobe.com/aboutadobe/antipiracy/***
"garyd71" <firstname.lastname@example.org> wrote in message
> I'm writing a flash program which runs through the frames and loops back
> its finished. The trouble is, I want some variables to keep their values
> to loop re-starts. Anyone know how to do this?
> Thanks - Gary.
Thanks for that. It works fine if I use gotoAndPlay(2) on the last frame.
yes, or if for some reason you can't change to frame2 use an IF statement:
on the first iteration 'run' will = undefined, and not be true, from that point forward it will satisfy the condition, and not declare the variables.