dcsimg
A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: preloading scenes

  1. #1
    Member
    Join Date
    Mar 2004
    Location
    uk
    Posts
    30

    preloading scenes

    erm how can i make my preloader load diffrent scenes and not load the whole site

    heres my script

    loadedBytes = _root.getBytesLoaded();
    totalBytes = _root.getBytesTotal();
    if (loadedBytes<totalBytes) {
    percentageOutput = int((loadedBytes/totalBytes)*100);
    _root.loader._xscale = percentageOutput;
    gotoAndPlay("load");
    } else {
    gotoAndPlay("start");
    }

    im gussing it would be something like this

    loadedBytes = scene1/_root.getBytesLoaded();
    totalBytes = scene1/_root.getBytesTotal();
    if (loadedBytes<totalBytes) {
    percentageOutput = int((loadedBytes/totalBytes)*100);
    _root.loader._xscale = percentageOutput;
    gotoAndPlay("load");
    } else {
    gotoAndPlay("start");
    }


    there is no good and evil there is only newgrounds and those too stupid to want it


    or would my script only load the scene its in?
    Last edited by kangaro; 08-08-2004 at 09:42 AM.
    i am your god

  2. #2
    Senior Member tu_dor's Avatar
    Join Date
    Jan 2004
    Posts
    209
    It's impossible to load scenes.
    Instead, make a swf for each page and load them in the main movie.

  3. #3
    Member
    Join Date
    Mar 2004
    Location
    uk
    Posts
    30
    thanks
    i am your god

  4. #4
    Senior Member tu_dor's Avatar
    Join Date
    Jan 2004
    Posts
    209
    You're welcome

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