<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init1()" width="100%">
<mx:Script>
<![CDATA[
import mx.controls.Alert;
public function init1():void
{
Alert.show(this.width.toString());
}
]]>
</mx:Script>
</mx:WindowedApplication>
I am running the above code on a monitor with resolution 800x600. So, I expect that the Alert that pops out will show the width to be 800. But it shows the width to be 500. Why?