Compose dynamic properties : Array Dimension : Array Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Array » Array Dimension »

 

Compose dynamic properties


 

package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){
        var members:Object = new Object();
        members.c1 = "B";
        members.c2 = "D";
        members.c3 = "V";
             
        for (var i:int 1; i <= 3; i++) {
            trace(members["c" + i]);
        }
    }
  }
}

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo Array
» Array Dimension