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 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;                
        var arc = percent*3.6;
        var arc = -Math.round(100-percent)*3.6;
        DrawUtil.wedge(mImgLoadStatus_mc,mWidth/2, mHeight/2,90,-arc, 30);

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.

BDG Team

Re: Replacing Circle Preloader

...anyone have an answer to this?

BDG Team