A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: [F8] Showing individual image loaders

  1. #1
    flash historian
    Join Date
    Aug 2001
    Location
    australia
    Posts
    71

    [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.
    ..
    Connect. Reach. Relate

    marketing@thirteen28.com
    www.thirteen28.com
    ..

  2. #2
    Registered User
    Join Date
    Sep 2004
    Location
    Los Angeles
    Posts
    86
    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.

  3. #3
    flash historian
    Join Date
    Aug 2001
    Location
    australia
    Posts
    71
    Thanks will try that when I get home. :-)
    ..
    Connect. Reach. Relate

    marketing@thirteen28.com
    www.thirteen28.com
    ..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center