A Flash Developer Resource Site

Results 1 to 16 of 16

Thread: Preloader problem (PLZ REPLY!!!)

  1. #1
    endless possibilities MadDog 555's Avatar
    Join Date
    Aug 2004
    Location
    planet earth
    Posts
    347

    Preloader problem (PLZ REPLY!!!)

    As of right now, i have a working preloader up at http://www.condiffphotography.com/ , and i guess that one is fine but, the problem is that when you try to load a picture the preloader matches the loading rate but when you click on that same picture a second time the preloader does not match up with the loading rate. This is because the swf is already loaded into the Temporary Internet Files. When I click on the same thumbnail a second time the preloader goes though the whole animation. This is a problem. How can I fix this??? I dont want the preloader to go through its whole animation on th second time i load a swf. goto: http://www.condiffphotography.com/ then click on enter site, then wedings then click on a wedding and u will see pictures, and that is what i am talking about. Thanx for your help.

    austin

    endless possibilities

  2. #2
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Post your preloading code...

    Basically, when the loading call is made, you sure first check on a blank frame if the loaded bytes are >= than the total bytes (indicating that the picture is already cached) and if so, skip the preloader frame(s), and directly go to displaying the picture...

  3. #3
    endless possibilities MadDog 555's Avatar
    Join Date
    Aug 2004
    Location
    planet earth
    Posts
    347
    how exactly do i do that. Im a newbie.

    Thanx,
    austin

    endless possibilities

  4. #4
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Post you preloading code...
    Or better attach one of your .flas (that includes this preloader), zipped up and in MX only format not MX2004 (use Save as to save a copy of this .fla in a MX only format, changing the Document type in the Save As window...), here on this forum.

  5. #5
    endless possibilities MadDog 555's Avatar
    Join Date
    Aug 2004
    Location
    planet earth
    Posts
    347
    her iz the fla.

    austin
    Attached Files Attached Files

    endless possibilities

  6. #6
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    I hate those apparently smooth preloaders, as they're not designed to not re-appear when the file is already cached...

    That said, I guess this is what you're looking for...

    Press the simulating thumb button, and re-press it when the picture is displayed...

    http://odin.prohosting.com/~oldnew/test14.html

    Attach one of your .flas (maybe this 14 one!), so that I can set it up in one of your own files. You'll then have to manage the same thing in all your other preloaders...

  7. #7
    endless possibilities MadDog 555's Avatar
    Join Date
    Aug 2004
    Location
    planet earth
    Posts
    347
    14.fla is in the zip attached
    how did you do that on the example???
    thanx anyway

    austin

    endless possibilities

  8. #8
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Did you actually attach it?

    I did it re-creating my own .fla, with a screen grab of that picture.

  9. #9
    endless possibilities MadDog 555's Avatar
    Join Date
    Aug 2004
    Location
    planet earth
    Posts
    347
    sry here it is
    Attached Files Attached Files

    endless possibilities

  10. #10
    endless possibilities MadDog 555's Avatar
    Join Date
    Aug 2004
    Location
    planet earth
    Posts
    347
    Could you please explain how you set it up so the preloader shows the first time you click on the Thumb but not on subsequent times, so I can do this on my web site.

    Thanks!
    Austin

    endless possibilities

  11. #11
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Got to clean up my own file and then insert it in your own file... Just didn't have the time to do it today, maybe by morning or a little later in the day...

  12. #12
    endless possibilities MadDog 555's Avatar
    Join Date
    Aug 2004
    Location
    planet earth
    Posts
    347
    Thanks, whenever you have time would be great. Just trying to learn how to do it. any help you can give me is appreciated!

    Austin

    endless possibilities

  13. #13
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Ok! Check this in the context of your whole setup... Which I can't do!

    Then if it does work, you can apply the same changes to all your preloaders.

    Carefull though, because I also changed the "loading message" in the "loading" clip, and inserted it in it's own movie clip, rather than the severals tweens you had on it's own timeline.
    Checked on my old 56k dial-up, the loading message was terribly slow, and so I made it better looking...

    EDIT: Changed the attachment to the last corrected version...
    Last edited by oldnewbie; 12-03-2004 at 11:30 AM.

  14. #14
    endless possibilities MadDog 555's Avatar
    Join Date
    Aug 2004
    Location
    planet earth
    Posts
    347
    Hey thanx for doing that for me. Can you send me a swf because I am on a computer that doesnt have flash. I will look at it when I get home.

    Thanks
    austin

    endless possibilities

  15. #15
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Here's alink to a .swf...

    http://odin.prohosting.com/~oldnew/org14.html

    Just noticed that I had moved the preloading display, and that it wasn't centered in relation to the picture. Corrected it in the link above, but it obviously ain't in the .fla you've downloaded in my above last post. Will correct the attachment, in that post, so you might want to download it again, when at home!

  16. #16
    Junior Member
    Join Date
    Aug 2004
    Posts
    5

    happy birthday mad dog!

    16 Thumps on your arm foo, sweet sixteen

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