Binding Help


i have remote object connection returning several pieces of data main mxml file. in main mxml file, loop through , assign each data field returned variable (e.g. fname, lname, etc.). need pass/bind variables values textinput boxes in component. best way accomplish this?

i use separate class contain these values, work way you're doing this. variables you'll need annotate them bindable:

[bindable] private var fname:string;

and in mxml, bind textinput variable:
<mx:textinput text="{fname}".../>

now if assign new value fname, reflected in textinput control.

tim


More discussions in Flex (Read Only)


adobe

Comments

Popular posts from this blog

Thread: PKI Client 5.00 install (for eToken Pro)

ATmega2560-Arduino Pin Mapping

Crossfader Arduino Tutorial