[thelist] Flash: random background

Kevin p+evolt at redbrick.dcu.ie
Thu Apr 25 08:03:01 CDT 2002


On Thu, Apr 25, 2002 at 01:03:19PM +0100, Michael Galvin wrote:
> Can anyone point me to a good tutorial on how to get a random background on
> my flash movie (ie, I have 4 images I want to use, and I'd like them to come
> up 'at random' as the movie is loaded).


Create a movieclip called backgrounds (make sure to name the instance name
too)

Then, have your different backgrounds on Frame 2-5.

On the first fram have this action.

goToAndStop(random(4)+2);



- Kevin



More information about the thelist mailing list