Preload multiple jpgs - Flash
- Started
- Last post
- 3 Responses
- tomkat
I need to load various jpgs, coming from a database, so the number of imgs is always different.
I have an idea, but how would you do that?
thx,
- unfittoprint0
these jpgs location are indexed in db [like in a mySQL table9.
If so, using PHP, you should do a query on that table and output the info as an XML [better 4 Flash].
Within flash inside the XML object's onLoad event u should make a for loop to retieve each image path. You could at the same time create empty movie clips, and load each image inside them 8Or save all the paths inside an array for later use].
- ********0
try using the movieClipLoader class in MX 2004
OR
what I'd do is to write you r own wee function using getBytlesLoaded and getBytesTotal, use a variable for the total number of jpegs and cycle through them until the number in the variable is met.
- tomkat0
alright.. so i need to store them in created clips if i want them, once loaded, to appear directly - without preloading one after one.
right?
or is there another option for that?