Return to Snippet

Revision: 22500
at January 13, 2010 13:22 by jrobinsonc


Initial Code
onSelfEvent (load)
{
    total = _root.getBytesTotal();
    percent = 80;
}
onSelfEvent (enterFrame)
{
    loaded = _root.getBytesLoaded();
    //percent = int(loaded/total*100);
    percent++;
    loading_text.text = percent+"%";
    loading_box.gotoAndStop(percent);
    if (percent == '100') {
      _root.gotoAndPlay(2);
    }
}
onFrame (1)
{
    stop();
}

Initial URL

                                

Initial Description

                                

Initial Title
Flash Loading Script

Initial Tags
flash

Initial Language
ActionScript