I have some issues with my preloader class. everytime I try to run the MovieClip it gives me 4 errors of 1120: access of undefined property e. I dont know what the problem is.
package {
import flash.display.MovieClip;
import flash.events.*;
import flash.text.*;
public class loadingScene extends MovieClip {
public var percentLoad:Number = Math.round(e.bytesLoaded / e.bytesTotal * 100);
public function loadingScene() {
stop();
this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgress);
}
public function onProgress(e:ProgressEvent):void {
loader_txt.text = Math.round(e.bytesLoaded / e.bytesTotal *100)+ "%";
if (percentLoad == 100){
onLoaded();
}
}
function onLoaded() {
this.loaderInfo.removeEventListener(ProgressEvent.PROGRESS, onProgress);
trace("YES");
}
}
}