Working with Associative Arrays : Dictionary : Array Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Array » Dictionary »

 

Working with Associative Arrays


 

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

        var lotto:Array = new Array(12304262975);
        lotto.description = "This week's lotto picks.";
        trace(lotto[3])// Displays: 6
        trace(lotto["description"])// Displays: This week's lotto picks.

    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Array
» Dictionary