Reading Elements of an Associative Array : Array Dimension : Array Flash / Flex / ActionScript examples


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

 

Reading Elements of an Associative Array


 

package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){
        var members:Object = new Object(  );
        members.s= "F";
        members.c= "G";
        members.t= "S";
             
        for (var sRole:String in members) {
            trace(sRole + ": " + members[sRole]);
        }
    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Array
» Array Dimension