dcsimg
A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: [F8] [Help] Preloader appears late

Threaded View

  1. #1

    [F8] [Help] Preloader appears late

    Hi, I know this is a known issue but I haven't found any solution.
    My preloader only appears once it has loaded 32% of the game.. wich can leave some people with a blank screen for quite long if they have a slow connection.
    I think it has something to do with the loading the music on the first frame or something. (but I have to use that option or the musics won't play)

    I don't know if you need this, but just in case:
    Preloader code (first frame) I have a bar and a percentage text
    Code:
    LOADED = Math.round(getBytesLoaded());
    TOTAL = Math.round(getBytesTotal());
    PERCENT = LOADED/TOTAL;
    TEXT = Math.round(PERCENT*100)+"%";
    setProperty(BAR, _xscale, (_root.getBytesLoaded()/(_root.getBytesTotal()))*100);
    if (LOADED == TOTAL)
    {gotoAndPlay (3);}
    play();
    and on the second frame
    Code:
    _root.gotoAndStop(1);
    Thanks.
    Last edited by SnailsAnimation; 09-06-2007 at 05:08 PM.

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