Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Working with Arrays of Objects (See related posts)

var sEmployees:Array = [];
sEmployees.push({employee:"Ramesh", phone:"9841026070"});
sEmployees.push({employee:"Rajesh", phone:"9940350708"});
sEmployees.push({employee:"Latha", phone:"044-42151184"});
sEmployees.push({employee:"Buvanesh", phone:"000-0000000"});

for (var i:Number=0; i<sEmployees.length; i++){
trace("Name:" + sEmployees[i].employee);
trace("Phone:" + sEmployees[i].phone);
}

You need to create an account or log in to post comments to this site.


Click here to browse all 5140 code snippets

Related Posts