Create an Object, adds properties, and inspect its properties : Object « 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 » ObjectScreenshots 
Create an Object, adds properties, and inspect its properties
Create an Object, adds properties, and inspect its properties
           
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
    creationComplete="initApp()">
    <mx:Script>
        private var obj:Object = new Object();
        private function initApp():void {
            obj.a = "A";
            obj.b = "B";
            obj.c = "C";
        }
        public function dumpObj():void {
            for (var p:String in obj) {
                ta1.text += p + ":" + obj[p"\n";
            }
        }
  </mx:Script>
    <mx:TextArea id="ta1" width="400" height="500" />
    <mx:Button label="Dump Object" click="dumpObj()" />
</mx:Application>

   
    
    
    
    
    
    
    
    
    
    
  
Related examples in the same category
1.Create a generic Object, adds properties to that objectCreate a generic Object, adds properties to that object
2.Define objects using properties directly in the Object tagsDefine objects using properties directly in the Object tags
3.Bind to a Generic ObjectBind to a Generic Object
4.Using source and property properties to specify an objectUsing source and property properties to specify an object
ww__w_.j_a___va_2s.c___o__m__ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.