A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: simple percentage preloader ???

  1. #1
    It would be really helpfull if somebody could tell me how to make a simple percenatge preloader. All my attempts to solve this simple task failed...
    Thanks for any help.

  2. #2
    Senior Member
    Join Date
    Jun 2001
    Posts
    102
    If you are using Flash 5, try following:

    Create a dynamic text field and in the variable field type 'Percent' for example.

    Insert following script to the first frame of your movie:

    Percent = int((_root.getBytesLoaded()/_root.getBytesTotal())*100) add "%";
    if (_root.getBytesLoaded() != _root.getBytesTotal()) {
    play ();
    } else {
    gotoAndPlay ("Movie");
    }

    "Movie" is a labeled frame.

    Insert following script to the second frame:

    gotoAndPlay (_currentframe-1);

  3. #3

    unfortunately it doesn`t work

    that is what I did:

    first frame:
    Percent = int((_root.getBytesLoaded()/_root.getBytesTotal())*100) add "%";
    if (_root.getBytesLoaded() != _root.getBytesTotal()) {
    play ();
    } else {
    gotoAndPlay 3;
    }

    second frame:
    gotoAndPlay 1;

    third frame: that is where my movie starts

    I created a dynamic text with variable `percent` (text located in first and second frame)

  4. #4

    thank you all for running this forum

    finally I figured it out... but without your help I wouldn`t move...
    thank you so much

  5. #5
    Senior Member
    Join Date
    Jun 2001
    Posts
    102
    No problem.

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