The associative array are the stock names and the items are representing the indexed array.
var stockDetails:Object = new Object(); stockDetails["AAPL"] = ["+5", "152 Change"]; stockDetails["MCSFT"] = ["-20", "-10 Change", "Another Item"];
Reading the array, you can use a for loop
for ( var stock:String in stockDetails )
{
trace ( stock + " -> " + stockDetails[stock] );
}
/* Trace:
----------------------
AAPL -> +5,152 Change
MCSFT -> -20,-10 Change,Another Item
*/
Thanks! Nice and simple, just what I was looking for.