package{
import flash.display.Sprite;
public class Main extends Sprite{
public function Main(){
var aEmployees:Array = new Array();
aEmployees.push(["A", "555-1234"]);
aEmployees.push(["P", "555-4321"]);
aEmployees.push(["C", "555-5678"]);
aEmployees.push(["H", "555-8765"]);
for(var i:Number = 0; i < aEmployees.length; i++) {
trace("Employee:" + aEmployees[i][0]);
trace("Phone Number:" + aEmployees[i][1]);
}
}
}
}
Employee:A
Phone Number:555-1234
Employee:P
Phone Number:555-4321
Employee:C
Phone Number:555-5678
Employee:H
Phone Number:555-8765
|