Move effect end event : Effect Event « Effects « Flex






Move effect end event

Move effect end event
   

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">

    <mx:Script>
        
            import mx.events.EffectEvent;

            private function effectEndHandler(event:EffectEvent):void {
                vbox.alpha = 1;
            }

      
    </mx:Script>

    <mx:Move id="moveEffect" xFrom="100" effectEnd="effectEndHandler(event)" />
    <mx:VBox id="vbox" alpha=".5" creationCompleteEffect="{moveEffect}">
        <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

1.Event listener for endEffect eventEvent listener for endEffect event
2.Dispatch effectStart event and effectEnd event once per targetDispatch effectStart event and effectEnd event once per target
3.Get UIComponent from EffectEventGet UIComponent from EffectEvent
4.Play Move effect creationComplete event handlerPlay Move effect creationComplete event handler
5.Define an event listener for the endEffect eventDefine an event listener for the endEffect event
6.Event EffectsEvent Effects