Created
January 12, 2010 15:47
-
-
Save acotie/275294 to your computer and use it in GitHub Desktop.
binding sample
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> | |
<mx:Label x="10" y="10" text="バインディングを確認するサンプル" fontWeight="bold" fontSize="12" /> | |
<mx:TextInput x="126" y="50" id="input_text" width="254" /> | |
<mx:Label x="10" y="52" text="文字を入力して下さい:" /> | |
<mx:Label x="10" y="104" text="バインディングによる表示:" /> | |
<mx:Label x="137" y="196" width="275" text="{input_text.text}" /> | |
<mx:Label x="126" y="196" width="275" id="output_lbl" /> | |
<mx:Button x="10" y="194" label="値をコピー" width="100" click="output_lbl.text = input_text.text;" /> | |
<mx:Text x="10" y="168" text="バインディングを使用しない場合、ボタンを押すなどのイベントで処理を行う必要があります。" width="402" height="20" /> | |
<mx:HRule x="10" y="139" width="423" /> | |
</mx:Application> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment