Borderの計算確認
forked from mxml helloworld (diff: 13)
ActionScript3 source code
/**
* Copyright yarhalla1 ( http://wonderfl.net/user/yarhalla1 )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/iK26
*/
<?xml version="1.0" encoding="utf-8"?>
<!-- forked from yarhalla1's mxml helloworld -->
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"
creationComplete="onload();">
<mx:Canvas id="canv1" width="150" height="150" backgroundColor="#eeeeee" borderStyle="solid">
<mx:Label id="stat1" text="Hello"/>
</mx:Canvas>
<mx:Canvas id="canv2" width="150" height="150" backgroundColor="#eeeeee" >
<mx:Label id="stat2" text="Hello"/>
</mx:Canvas>
<mx:Script>
<![CDATA[
private function onload():void{
stat1.text = "" + canv1.width + "px * "+ canv1.height + "px";
stat2.text = "" + canv2.width + "px * "+ canv2.height + "px";
}
]]>
</mx:Script>
</mx:Application>