Use Zoom class to set zoom effect : Zoom Effect « Effects « Flex






Use Zoom class to set zoom effect

Use Zoom class to set zoom effect
    

<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="createEffect(event);">
    <mx:Script>
        
            import flash.events.Event;
            import mx.effects.Zoom;
            private function createEffect(eventObj:Event):void {
                var zEffect:Zoom = new Zoom();
                zEffect.duration = 2000;
                zEffect.zoomHeightTo = 3.50;
                zEffect.zoomWidthTo = 1.50;
                myB.setStyle("mouseDownEffect", zEffect);
            }
          
    </mx:Script>
    <mx:Button id="myB" />
</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.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
3.Set up zoom effect in ActionScriptSet up zoom effect in ActionScript
4.Zoom EffectsZoom Effects
5.SeriesZoom effectSeriesZoom effect
6.Zoomer Pattern 2Zoomer Pattern 2