This is the code that changes the horizontal scale of the bar. As the _xscale property uses a percentage, affecting this property is perfect for creating preloaders. If you think of the graphic you created as being 100% of the horizontal scale, 10% or even 50% will be thinner, therefore a pretty accurate representation of the amount of data loaded can be displayed.