<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" backgroundGradientAlphas="[1.0, 1.0]" backgroundGradientColors="[#874040, #874040]">
<mx:Script>
<![CDATA[
private function showProperties():void {
panelPropertyArea.text= "Status: " + panel.status + '\n' +
"Title: " + panel.title + '\n' +
"Width: " + panel.width + '\n' +
"Height: " + panel.height ;
}
]]>
</mx:Script>
<mx:Panel id="panel" title="Panel Container" layout="vertical" color="0x323232" height="200" borderAlpha="1" status="Active"
paddingTop="10" paddingRight="10" paddingBottom="10" paddingLeft="10" horizontalAlign="center" x="23" y="28">
<mx:Label width="100%" color="0x323232"
text="Click the Button control to see panel properties."/>
<mx:TextArea id="panelPropertyArea" width="100%" height="100%"/>
<mx:Button label="Click to view Panel properties" click="showProperties();"/>
</mx:Panel>
</mx:Application>
No comments:
Post a Comment