Set target and targets properties in ActionScript : ActionScript « Development « Flex

Home
Flex
1.Chart
2.Components
3.Container
4.Data Model
5.Development
6.Effects
7.Event
8.Graphics
9.Grid
10.Style
Flex » Development » ActionScriptScreenshots 
Set target and targets properties in ActionScript
Set target and targets properties in ActionScript
          
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="createEffect(event);">
    <mx:Script>
        
        import mx.effects.Fade;
        import flash.events.Event;
        private var myFade:Fade = new Fade();

        private function createEffect(eventObj:Event):void {
            myFade.duration=5000;
            myFade.play([myPanel1, myPanel2]);
        }
        private function playZoom(eventObj:Event):void {
            myZoom.end();
            myZoom.target = myTA;
            myZoom.play();
        }
      
    </mx:Script>
    <mx:Zoom id="myZoom" duration="2000" zoomHeightFrom="0.10"
        zoomWidthFrom="0.10" zoomHeightTo="1.00" zoomWidthTo="1.00" />
    <mx:Panel id="myPanel1">
        <mx:TextArea id="myTA" />
    </mx:Panel>
    <mx:Panel id="myPanel2">
        <mx:Button id="myButton" click="playZoom(event);" />
    </mx:Panel>
</mx:Application>

   
    
    
    
    
    
    
    
    
    
  
Related examples in the same category
1.Use ActionScript to configure controlsUse ActionScript to configure controls
2.Applying behaviors in ActionScript with Resize classApplying behaviors in ActionScript with Resize class
3.Add controls with ActionScriptAdd controls with ActionScript
4.Load swf file with ModuleManager in ActionScriptLoad swf file with ModuleManager in ActionScript
5.Inline ActionScriptInline ActionScript
6.Setting Triggers With ActionScriptSetting Triggers With ActionScript
7.Set Properties of a Child Defined in MXML in ActionScriptSet Properties of a Child Defined in MXML in ActionScript
8.Bind to Properties by Using ActionScriptBind to Properties by Using ActionScript
9.Specify an id value to refer to a component elsewhere in your MXML, either in another tag or in an ActionScript blockSpecify an id value to refer to a component elsewhere in your MXML, either in another tag or in an ActionScript block
10.Tags Are ClassesTags Are Classes
11.Attributes Are PropertiesAttributes Are Properties
w___w_w.__j__av__a2__s___.__com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.