Hi list...

Why is this not working?  Why can't I get a progress bar working  correctly?

Thanks,
- Michael M.

                public function docClass() {
                        loadingGraphic = new Logo();
                        loadingGraphic.x = 382;
                        loadingGraphic.y = 200;
                        addChild(loadingGraphic);
                        
this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, showLoading);
                }
                private function showLoading(p:ProgressEvent):void{             
        
                        var pct:Number = (p.bytesLoaded/p.bytesTotal)*100;
                        loadingGraphic["progBar"].scaleX = pct/100;
                        if(p.bytesLoaded == p.bytesTotal){
                                
this.loaderInfo.removeEventListener(ProgressEvent.PROGRESS, showLoading);
                                init();                         
                        }               
                }

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to