Play Move effect creationComplete event handler
<?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.target = event.currentTarget;
moveEffect.play( );
}
</mx:Script>
<mx:Move id="moveEffect" xFrom="100" />
<mx:VBox>
<mx:TextInput id="textInput1" creationComplete="applyEffect(event)" />
<mx:TextInput id="textInput2" creationComplete="applyEffect(event)" />
<mx:TextInput id="textInput3" creationComplete="applyEffect(event)" />
<mx:TextInput id="textInput4" creationComplete="applyEffect(event)" />
</mx:VBox>
</mx:Application>
Related examples in the same category