PDA

View Full Version : Loading a random image from an external array


jiggystar
11-16-2004, 02:50 PM
Hi Guys,

I'm looking for some help or direction regarding the title above (Loading a random image from an external array) in MX 2004.

I have a folder of images and I want to get one of then to be displayed at random each time you load the the SWF.

I'm really not sure where to start as I am a NEWBIE to FLASH!!! Can anyone point me in the right direction?????? I will always try to return the favour!

Regards

Jiggystar :confused: :confused: :confused:

CyanBlue
11-16-2004, 03:03 PM
Howdy and Welcome... :)

The topic has been brought up many times already... :)

The first step would be extracting one element from the array... If you search the forum with the 'unique random', you should be able to see some snippets of how you can get the unique item from the array each time you need to get the element...

Once that's done, you just need to create a function that will call up that extracting routine and do the loadMovie() with that image file name... :)

PS> Your duplicate has been deleted... You are not to crosspost in the forum... :(

jiggystar
11-17-2004, 03:59 PM
Thank you for the pointers! Actually found the answer in noe of your many threads.

Thanks again!