Play effect for more than one controls
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script>
private function applyEffect(event:Event):void {
moveEffect.targets = [textInput1, textInput2, textInput3, textInput4];
moveEffect.play( );
}
</mx:Script>
<mx:Move id="moveEffect" xFrom="100" />
<mx:VBox creationComplete="applyEffect(event)">
<mx:TextInput id="textInput1" />
<mx:TextInput id="textInput2" />
<mx:TextInput id="textInput3" />
<mx:TextInput id="textInput4" />
</mx:VBox>
</mx:Application>
Related examples in the same category