Making Lookup Tables with Object Literals : Dynamic object : Class Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Class » Dynamic object »

 

Making Lookup Tables with Object Literals


 


package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){


        var info:Object = {city:"Toronto", country:"Canada"};
        
        //The preceding code is identical to the following code:
        var info:Object = new Object(  );
        info.city = "Toronto";
        info.country = "Canada";
        

    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Class
» Dynamic object