Using a conditional to drop a "0" from some pre-load text

Hi every one once again I’m knit picking my code and ran into smaller problem that I’m a bit stumped on. I’ve got a little pre-load action going on and there is a Dynmaic text feild with and instance name of “loaded_txt” and it pretty much is counting up from 0 to 100 and loading. I’m trying to write a conditional statement that will place a “0” pad in front of the dynamic text until it hits 10 and then just counts up normally. Its close to working but I’m getting some push back with on the else statement:

1083: Syntax error: else is unexpected.

I thought that this wPHP a a proper use of the “else” statement but somthing is wrong I’m also a bit fuzzy on the properties I’m comparing does that look right to everyone?
Code in question:


var percent_loaded:Number = loaded/total;
    loaded_txt.text = "" + (Math.round(percent_loaded * 100));
    if(percent_loaded <= (Math.round(percent_loaded * 9)));
    {
        loaded_txt.text = "0" + (Math.round(percent_loaded * 100));
    }
    else if(percent_loaded >= (Math.round(percent_loaded * 10))); // problem here
    {
        loaded_txt.text = "" + (Math.round(percent_loaded * 100));
    }
}

Over all code:


this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgress, false, 0 ,true);
this.loaderInfo.addEventListener(Event.COMPLETE, onComplete, false, 0 ,true);

function onProgress(event:ProgressEvent):void
{
    var loaded:Number = event.target.bytesLoaded;
    var total:Number = event.target.bytesTotal;
    var percent_loaded:Number = loaded/total;
    loaded_txt.text = "" + (Math.round(percent_loaded * 100));
    if(percent_loaded <= (Math.round(percent_loaded * 9)));
    {
        loaded_txt.text = "0" + (Math.round(percent_loaded * 100));
    }
    else if(percent_loaded >= (Math.round(percent_loaded * 10)));
    {
        loaded_txt.text = "" + (Math.round(percent_loaded * 100));
    }
}
function onComplete(event:Event):void
{
    play();
}

Thx for any light you could shine on this problem.

JT