AS3 - Full screen browser errors

CS4-AS3 Full screen browser error

This is my preloader on the first frame.

stop();   


this.loaderInfo.addEventListener (ProgressEvent.PROGRESS, PL_LOADING);

function PL_LOADING(event:ProgressEvent):void {
var pcent:Number=event.bytesLoaded/event.bytesTotal*100;

lbar.scaleX=pcent/100;

lpc.text=int(pcent)+"%";

if(pcent==100){
this.gotoAndStop(2);
}
}

This is the full screen browser script on the 2nd frame.

stop()

Stage.scaleMode = "noScale"
Stage.align = "TL";

bg_ratio = bg_mc._width / bg_mc._height;

stageResize();

function stageResize():Void {
    stage_ratio = Stage.width / Stage.height;
    if (stage_ratio >= bg_ratio) {
        bg_mc._width = Stage.width;
        bg_mc._height = bg_mc._width / bg_ratio;
    } else {
        bg_mc._height = Stage.height;
        bg_mc._width = bg_mc._height * bg_ratio;
    }
}

var stageListner:Object = new Object();
stageListner.onResize = function():Void  {
    stageResize();
};

Stage.addListener(stageListner);

Errors:

1046: Type was not found or was not a compile-time constant: Void.  - function stageResize():Void { - frame 2 line 10
Warning:  1058: Migration issue: The property _height is no longer supported.  Use  the DisplayObject.height property instead.. - bg_ratio = bg_mc._width /  bg_mc._height; - frame 2 line 6

I am using AS3 on this project but i am not sure of the scripts are AS2 or AS3. Beginner.
[URL=“http://www.kirupa.com/forum/showthread.php?p=2550412#post2550412”]