Flex. How to get textinput text values in dynamic..?


hi all.,

 

        have using dynamic form get  textinput text values.

<fx:script>

 

        <![cdata[

public function init():void

{

          frmitem1 = new formitem();
            frmitem1.direction = "horizontal";
            frmitem1.label = "customer name";
            txtinput1 = new textinput();
            txtinput1.id="txt_custname";
            txtinput1.width=170;
            frmitem1.addelement(txtinput1);
            userinfoform.addelement(frmitem1);

}

 

  public function search_click():void

   {

     user.text="custname"+.text;


    }
        ]]>
       
    </fx:script>
    <fx:form id="userinfoform"/>

<fx:label id="user"/>
    <s:button id="btn_search" label="search" click="search_click();"/>

 

 

error displayed.  how textinput id , text

any 1 problem...

 

 

ling's

use,

 

str = txtinput1.text

 

which return text contains in textinput.

 

 

regards,



More discussions in Flex (Read Only)


adobe

Comments

Popular posts from this blog

How to decompile jsxbin to jsx

Gavik Photoslide GK2: Not able to upload photos - Joomla! Forum - community, help and support

Phoca Guestbook logger registret bruger af - Joomla! Forum - community, help and support