Applying behaviors using the Effect.target and Effect.targets properties
<?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" target="{myButton}" /> <mx:Button id="myButton" label="Zoom target" click="myZoom.end();myZoom.play();" /> </mx:Application>