Flash/ActionScript Loading Bar - Part 1

This is an Example of a Loading Bar created in Flash. This only uses the property "_xscale" to change the Loading Bar's width.

(This is the Code:

x += 1; //Every time this frame is played, add one to the variable "x"
if(x == 100){ // if "x" is equal to 100, start over at 1
x = 1;
_root.loader._xscale = x; // The widthe of the Loading bar is equal to "x"

NOTE: This Entry is being used by this blog post: http://websitedesign.websitesinaflash.com/2007/05/actionscript-loading-screen-part-1/

Please link to the blog post, not this page.

Thank You,
-Ashton Sanders