Topic: Replacing Circle Preloader

Hello All!

I know this has been touched on before in this forum, but it doesn't seem like we have a more detailed explanation on how to do this.

I wanted to replace the circle preloader with a couple pixel high orange bar. I know that in other post you are supposed to modify the onLoadProgress function in the Image.as file (pasted below).

function onLoadProgress (target:MovieClip, bytesLoaded:Number, bytesTotal:Number):Void {
                
        var arc = -Math.round(100-percent)*3.6;        
        
        //draw arc
        var percent = (bytesLoaded/bytesTotal)*100;                
        mImgLoadStatus_mc.clear();    
        var arc = percent*3.6;
        var arc = -Math.round(100-percent)*3.6;
        mImgLoadStatus_mc.beginFill(mXMLManager.frameColor,95);
        DrawUtil.wedge(mImgLoadStatus_mc,mWidth/2, mHeight/2,90,-arc, 30);
        mImgLoadStatus_mc.endFill();    
        
    }

But how do you draw out a single couple pixel high line instead of an arc and make it orange? AS3 seems to be new to the majority of posters on this forum, so maybe someone can post the code to do it and help out A LOT of people.

Thanks!
BDG Team

Re: Replacing Circle Preloader

...anyone have an answer to this?

Thanks!
BDG Team