Play effects from a Parallel : Parallel Effect « Effects « Flex






Play effects from a Parallel

Play effects from a Parallel
    

<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="createEffect(event);">
    <mx:Script>
        
        import mx.effects.*;
        public var myZoomShow:Zoom;
        public var myRotateShow:Rotate;
        public var myParallel:Parallel;
        private function createEffect(eventObj:Event):void {
            myZoomShow=new Zoom(aTextArea);
            myZoomShow.zoomHeightFrom=0.0;
            myZoomShow.zoomWidthFrom=0.2;
            myZoomShow.zoomHeightTo=1.0;
            myZoomShow.zoomWidthTo=2.0;
        
            myRotateShow=new Rotate(aTextArea);
        
            myParallel=new Parallel();
            myParallel.addChild(myZoomShow);
            myParallel.addChild(myRotateShow);
        }
      
    </mx:Script>
    <mx:TextArea id="aTextArea" text="hello" visible="false" />
    <mx:Button id="myButton1" label="Show!"
        click="aTextArea.visible=true; myParallel.end(); myParallel.play();" />
</mx:Application>

   
    
    
    
  








Related examples in the same category

1.Parallel effect with Parallel effect with <mx:Parallel>
2.Add various effects to ParallelAdd various effects to Parallel
3.Parallel effects for moving