all groups > flash actionscript > august 2007 >
You're in the

flash actionscript

group:

Run Script Once ?


Run Script Once ? cubby47
8/12/2007 8:28:00 PM
flash actionscript:
i have a moving photo gallery whose movie loops round in big circle, when it
gets to that last frame it loops back to the first to give the appearance of
continuous movement. anyway, my problem; frame one holds the loadMovie code
which imports the images for the preview thumbnails into the awaiting
movieclips on the stage and it works just fine until it loops back round again
from the last frame, when it replays the first frame the images load again, but
they take a split second to do so, in this time the images all disappear and it
looks a bit pants. anyone any idea on how to get the images just to appear once
and not to reload every time it loops?

thanks!
Paul
Re: Run Script Once ? clbeech
8/12/2007 9:16:56 PM
you could:

1) on the last frame of the timeline, add a: gotoAndPlay(2);

2) use a variable in an 'if' statement to envelope your loading code, set it
to true on complete so that once it's loaded it doesn't load again.

3) make small gif, png or jpeg preview thumbnails, import them into the movie
and just place them in the clips, no loading needed, use: cacheAsBitmap.
Re: Run Script Once ? cubby47
8/13/2007 12:00:00 AM
Re: Run Script Once ? clbeech
8/13/2007 12:00:00 AM
AddThis Social Bookmark Button