Randomizing in Flash MX?

QueBert

Lifer
Jan 6, 2002
22,983
1,179
126
I'm making a screen saver in Flash MX. I'm not well versed in the Action Scripting sh*t at all. What I'm trying to figure out how to do is this.

Have it pull up either pull a random MC from my Library. Or go to a random frame on a specified layer. So like when the SS opens it will display a random animation (or whatever) I Googled, but could only find something that shows you how to pull images from an external dir, which won't work for me. I know what I'm trying to do should be fairly simple, weather I have to use Action Script, or something else I don't know.


any help? thanks :)
 

DaveSimmons

Elite Member
Aug 12, 2001
40,730
670
126
Look at the solitaire example at www.flashkit.com it shuffles movie clips around randomly. There should be other card / dice games and a search of "random" there might turn up other randomizing samples.
 

QueBert

Lifer
Jan 6, 2002
22,983
1,179
126
Thanks, I looked at the samples you listed. I am definitely not going to attempt that. It appears it's not as simple as I thought it was. It would take me forever to figure it out :)