Attributes Are Properties : 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 » ActionScript 




Attributes Are Properties
Attributes Are Properties
          

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


<!--
which has the equivalent ActionScript:



import mx.controls.Button;
var myButton:Button = new Button();
myButton.label = "Click Me";
addChild(myButton);
-->

   
    
    
    
    
    
    
    
    
    
  














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.Inline ActionScriptInline ActionScript
7.Setting Triggers With ActionScriptSetting Triggers With ActionScript
8.Set Properties of a Child Defined in MXML in ActionScriptSet Properties of a Child Defined in MXML in ActionScript
9.Bind to Properties by Using ActionScriptBind to Properties by Using ActionScript
10.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
11.Tags Are ClassesTags Are Classes
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.