Inline ActionScript : ActionScript « Development « Flex






Inline ActionScript

Inline ActionScript
          

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

    <mx:TextInput id="fullNameTextInput" text="AAA" />
    <mx:Button label="Click me" click="fullNameTextInput.text = 'AAA'" />
</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.Set target and targets properties in ActionScriptSet target and targets properties in ActionScript
4.Add controls with ActionScriptAdd controls with ActionScript
5.Load swf file with ModuleManager in ActionScriptLoad swf file with ModuleManager in 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