CH03_08.mxml 两个文本框绑定赋值为一个文本框

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
              xmlns:s="library://ns.adobe.com/flex/spark" 
              xmlns:mx="library://ns.adobe.com/flex/mx">
  <s:Group>
    <s:layout>
      <s:HorizontalLayout/>
    </s:layout>
    <s:TextInput id="myTextInput1"/>
    <s:TextInput id="myTextInput2"/>    
    <s:TextInput id="myTextInput3" text="{myTextInput1.text + myTextInput2.text}"/>
  </s:Group>
</s:Application>

 

posted @ 2015-03-25 10:20  小山东  阅读(105)  评论(0编辑  收藏  举报