A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: preloader taking too long.... why? OH WHY? ... anyone..? please... ;)

  1. #1
    Senior Member
    Join Date
    Nov 2000
    Location
    London - UK
    Posts
    191

    preloader taking too long.... why? OH WHY? ... anyone..? please... ;)

    Hi there... desperately looking for some help on this one.....

    I'm working on this site for a band - it's been giving me major headaches.... now after about the 5th time of setting it up from scratch - it does take ages for the pop up window that displays the page to show the preloader.... it kicks in about 20-25%...

    Does anyone know what I can do about this....?

    Tried to set up 2 frames, bringing in the screen and background before the preloader - tried starting the preloader in the very first frame as normal - tried to set up a preloader for the preloader and failed miserably... :'(

    If anyone could take a look and help me out here... that would be GREAT!!!

    http://www.graphiceyedea.co.uk/redhed/update4
    (the site is still work in progress, some preloaders still missing for the sections and sound to be added, apart from most of the content)

    Thanks for listening....
    Prisca
    ___carpe_diem___

  2. #2
    Junior Member scudsucker's Avatar
    Join Date
    Feb 2003
    Location
    Cape Town, RSA
    Posts
    1,509
    with a 56K modem, it started at about 15 to 20% but I couldnt tell, it loaded fast, so it jumped up quickly. It loaded in about 10 seconds, so i dont think you have any problem.

    But, if you really really want the preloader to start from 0, then instead of using the traditional percentLoaded calculation:

    Code:
    percentLoaded=(_root.getBytesLoaded()/_root.getBytesTotal())*100;
    try this..on a small, preferably emply clip, that is in frame 1 in the top layer.

    Code:
    onClipEvent(load) {
    _root.alreadyLoaded=_root.getBytesLoaded;
    }
    onClipEvent(enterFrame) {
    gBL=_root.getBytesLoaded-_root.alreadyLoaded;
    gBT=_root.getBytesTotal-_root.alreadyLoaded;
    //
    percentLoaded=(gBL/gBT)*100;
    }
    so you try to calculate the percentage of what is still left to load...
    Hariyemadzisawira nhaka yedu! Down the SCUD and win!
    I'm too lazy to read Private Messages.

  3. #3
    Senior Member
    Join Date
    Nov 2000
    Location
    London - UK
    Posts
    191

    thanks so much ;)

    scudsucker,
    thanks for taking the time to check

    I'm so glad you don't think there is a problem - I'd send the link around to a few friends and some of them said that they were about to close the page as they didn't think it was working - that's why I started to worry!

    Thanks for the script though - I'll try it out!!

    Thanks again
    Prisca
    ___carpe_diem___

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