Set up zoom effect in ActionScript : Zoom Effect « Effects « Flex

Home
Flex
1.Chart
2.Components
3.Container
4.Data Model
5.Development
6.Effects
7.Event
8.Graphics
9.Grid
10.Style
Flash / Flex / ActionScript
Flash Tutorials
Flex » Effects » Zoom EffectScreenshots 
Set up zoom effect in ActionScript
Set up zoom effect in ActionScript
    

<?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.Using the Zoom effect to make the button zoom-in largeUsing the Zoom effect to make the button zoom-in large
2.Use Zoom class to set zoom effectUse Zoom class to set zoom effect
3.Apply a Zoom effect to multiple Buttons with data binding to effect's targets propertyApply a Zoom effect to multiple Buttons with data binding to effect's targets property
4.Zoom EffectsZoom Effects
5.SeriesZoom effectSeriesZoom effect
6.Zoomer Pattern 2Zoomer Pattern 2
java2s.com  |  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.