The progress bar is technically working, but it isn’t loading through the whole bar. Also, the text isn’t showing up.
Click on Drawings, then click on an image. It works, but not how it should.
I think it is a problem with calling the xscale and text?
preloader.onEnterFrame = function() {
l = image_mc.getBytesLoaded();
t = image_mc.getBytesTotal();
p = Math.round((l/t)*100);
if (p != 100) {
//then we are not fully loaded
this._visible = true;
this._xscale = p*100;
this.text = p +'% loaded';
} else {
this._visible = false;
}
};
here is the FLA file:
http://www.jchamorro.com/test/main.fla