Mega Code Archive

 
Categories / Flex / Data Model
 

Applying behaviors in MXML using data binding

<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">     <mx:Zoom id="mZoom" zoomHeightTo="{Number(zoomHeightInput.text)}" zoomWidthTo="{Number(zoomWidthInput.text)}" />     <mx:TextInput id="zoomHeightInput" text="1.0" />     <mx:TextInput id="zoomWidthInput" text="1.0" />     <mx:Button rollOverEffect="{mZoom}" /> </mx:Application>