public function Preloader() { stage.scaleMode = StageScaleMode.NO_SCALE; stage.showDefaultContextMenu = false;
[...] this.addEventListener(Event.ENTER_FRAME, this.onEnterFrame); this.loaderInfo.addEventListener(Event.INIT, this.initDisplay); this.loaderInfo.addEventListener(Event.COMPLETE, this.initApplication); this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, showProgress); this.stop(); } public function showProgress(eProgress:ProgressEvent):void { var fPercent:Number = Math.round((eProgress.bytesLoaded / eProgress.bytesTotal )*100 ); var mcProgressbar:MovieClip = MovieClip(this.getChildByName("mcProgressBar")); with (mcProgressbar) { mcBar_00.width = fPercent * 2; [...] } if (this._iState == STATE_NOP) { this._iState = STATE_LOADBG; } }
Powered by: newtelligence dasBlog 1.9.6264.0
Disclaimer The opinions expressed herein are our personal opinions and do not represent our customer's view in anyway.
© Copyright 2009, gaming your way
E-mail