• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 10. Arrays > Retrieving Information from an Array

Retrieving Information from an Array

When retrieving information from an array, use the index of the array element to pull that specific piece of data, as shown here:

var my_array:Array = new Array("fName","lName","age");
trace(my_array [1]);
//output: lName


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint