-
[F8] Showing individual image loaders
I want to create a file that loads a range of images as determined by an xml file that will show a loader for each image as it loads.
What to see a working example?
http://www.joshuadavis.com
Any ideas on the creation of the loader for the files, I can create a loader for a swf but to create one that works for a dynamicly loaded jpeg it another thing that I'm not really sure where to start.
-
loading a jpeg is done pretty much the same way as loading a swf.
you could do something like
onEnterFrame=function(){
loaded_val = loading_mc.getBytesLoaded/loading_mc.getBytesTotal;
loadbar_mc._xscale = loaded_val;
}
This is pretty simplistic, but you could use loaded_val to display percent loaded text or whatever cool little animation graphic you wanted to appear.
(put the loader mc behind the mc that you are loading the image into)
loading_mc could also be a duplicated mc that has 3 layers: top with empty_mc that you load the jpeg into, and the bottom layer holds the loadbar_mc. then just put the onEnterFrame AS in script layer
Last edited by groovything.com; 06-25-2006 at 06:12 PM.
-
Thanks will try that when I get home. :-)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|