Converting from MXML to AS3

Hi can any of you convert the following Flex to AS3, I have tried -keep-generated-actionscript but it just gives a lot of confusing code.

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" applicationComplete="main()">
    <mx:Script>
    <![CDATA[
    import mx.core.Window;
    
    private function main( ) : void {
        var window:Window;
        for ( var i:int = 0; i < 5; i++ ) {
            window = new Window();
            window.width  = 200;
            window.height = 300;
            window.open(true);
            window.showStatusBar = false;
        }
    }
    ]]>
    </mx:Script>
</mx:Application>

Thanks in advance