<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Panel x="182" y="116" width="250" height="200" layout="absolute">
<mx:TextInput x="35" y="39" id="txtName"/>
<mx:Button x="82" y="97" label="Button" click="mx.controls.Alert.show('Hello!'+txtName.text)"/>
</mx:Panel>
</mx:Application>
Button은 아래의 것으로 바꿀 수도 있다.
LinkButton ->마우스 올리면 색깔이 변함
=================================================================================================================================
쓸데없는 짓 하나...
네임스페이스를 내것으로 한번 바꾸어 보았다.
<?xml version="1.0" encoding="utf-8"?>
<hagi:Application xmlns:hagi="hagi.*" layout="absolute">
<hagi:Panel x="182" y="116" width="250" height="200" layout="absolute">
<hagi:TextInput x="35" y="39" id="txtName"/>
<hagi:Button x="82" y="97" label="Button" click="hagi.controls.Alert.show('Hello!'+txtName.text)"/>
</hagi:Panel>
</hagi:Application>