Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Loading external .jpgs randomly with one fading into next

Status
Not open for further replies.

mganeles

Technical User
Apr 21, 2001
10
US
Hello,

Loading external .jpgs randomly with one fading into next

I would load jpgs with one fading in to the other, randomly (from a pool of five jpegs) on to the stage. My pictures are about 300k+ each, so I'll externally load them from the sam folder as my .swf file.

I'd like to know how to generate the random numbers, and how to get the externally loaded jpgs to fade into one another. I'm loading into a clip, and my understanding is that when a jpg is loaded in to an empty movie clip, it takes on the properties of that movie clip. So, if I have the empty movie clip fade (Alpha from 0 to 100, then back to 0), then I thought the picture would do the same.

Please help with one or both issues. Thanks, Mamaglee
 
If by fade into one another, you really mean a dissolve, then you'd need to use 2 movie clips holders, stacked one over the other, and always load the next picture in the top container after swapping the depths of the containers.

As for the random loading, is this a continuous looping of loading random pictures, or are you just loading 5 random pictures, and then it stops?

Regards. FLASH HELP - OPENED FOR BUSINESS!
TO GET YOUR OWN FREE WEBSITE HOSTING
 
Thanks, stops after loading the last image. Thank you for the dissolve instructions too. Mamaglee
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top