dcsimg
A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Simple preload for dynamic loaded picture

  1. #1
    Member
    Join Date
    Apr 2003
    Posts
    40

    Simple preload for dynamic loaded picture

    I need a simple preloader for a single picture.

    The problem is that I use

    mypic.ondata=function(){
    [update preloader code]
    }

    I need the size of the pic and the number of bytes loaded.


    I tried mypic.getbytesloaded and mypic.getbytestotal but they don't seem to work since getbytes.. refer to the main static movie .

    Also I do not know if I have to place the update for the preloader in a clipevent(enterframe) on main movie or on the ondata.


    I just need to pass name of pic to a swf and I need it to load that pic with a simple preloader progress bar similar to the front pages loads found newseum site.

    The preloader is easily implemented when the picture is already in the movie. ie. not dinamically loaded but I need it for dynamically loaded pictures whose name is passed to the .swf via parameters.

    Thanks

  2. #2
    Member
    Join Date
    Jun 2004
    Posts
    87
    go to www.omegaluxurywheels.com and visit the high bandwidth site.

    go to the gallery section and check out how the images load dynamically from the server with a preloader and a fade in

    if that what you need I will get you the code. I dotn have it at work right now

  3. #3
    Senior Member
    Join Date
    Mar 2003
    Posts
    316

    yep

    would be nice to get that code

    thanx

  4. #4
    Member
    Join Date
    May 2002
    Location
    USA.me._x = 18; _y = 36;
    Posts
    79

    Ditto

    would be extremely gratefull to be able to check it out
    fp
    <fp>

  5. #5
    Member
    Join Date
    Apr 2003
    Posts
    40
    Yes, I just visited that (awsome) site and that's exactly what I need: a simple preloader for dynamically loaded pictures. There are thousands of them for pictures already in the .swf but not for dynamic.

    I am also curious about the code and functions used to get bytes loaded and total bytes for dynamic picture.

    Please post that code.

    Thanks

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