A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: external preloader

Hybrid View

  1. #1
    I have made a movie which preloads a number of external movies. It is working fine, but I can't get the loader bar to work. here's the code:

    actBytes = eval("_level" add movielevel).getBytesLoaded() || 0;
    totBytes = eval("_level" add movielevel).getBytesTotal() || 100;
    percent = Math.round(actBytes * 100 / totBytes);

    ********this is the script for the loaderbar movie********

    frame = int(actBytes/(totBytes/100));
    tellTarget (_root.loader) {
    gotoAndStop (_root.frame);
    }

    if( totBytes - actBytes > 10){
    gotoAndPlay(3);


    } else if(actMovieIdx < moviearray.length){
    gotoAndPlay(2);

    }

    The rest of the code is working fine, I'm sure it's something simple to get this working, I just can't put my finger on it.

    Kindest Regards


  2. #2
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    frame = int(actBytes/(totBytes/100));
    tellTarget (_root.loader) {
    gotoAndStop (_root.frame);
    }
    Try this instead:

    frame = int(actBytes/(totBytes/100));
    tellTarget (_root.loader) {
    gotoAndStop (frame);
    }

  3. #3
    I'm afraid it didn't work.

    Thanks for your help though.

    Kindest regards

    tyranid

  4. #4
    It doesn't matter now, I've found a better way to doit.

    regards

    tyranid

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