Skip to content

Instantly share code, notes, and snippets.

@acotie
Created January 12, 2010 15:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save acotie/275294 to your computer and use it in GitHub Desktop.
Save acotie/275294 to your computer and use it in GitHub Desktop.
binding sample
<?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