Apply a Zoom effect to multiple Buttons with data binding to effect's targets property
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Zoom id="myZoom"
zoomHeightFrom="0.10"
zoomWidthFrom="0.10"
zoomHeightTo="1.00"
zoomWidthTo="1.00"
targets="{[myButton1, myButton2, myButton3]}" />
<mx:Button id="myButton1" />
<mx:Button id="myButton2" />
<mx:Button id="myButton3" />
<mx:Button label="Zoom targets" id="myButton4" click="myZoom.end();myZoom.play();" />
</mx:Application>
Related examples in the same category