Mega Code Archive

 
Categories / Flex / Data Model
 

Using functions that take bindable properties as arguments

<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">   <mx:CurrencyFormatter id="usdFormatter" precision="2" currencySymbol="$" alignSymbol="left" />   <mx:TextInput id="myTI" text="Enter number here" />   <mx:TextArea text="{usdFormatter.format(myTI.text)}" /> </mx:Application>