You too can Associative Array Reference! (But can I?)

Hi there!

I’m trying to dynamically define some variables but I seem to be doing something wrong…

[AS]function placeData(color){
plinky[“color”] = new Array();
plinky[“color”]name = “angry”;

plinky = new Object();
results = placeData(red);


trace (results) should give back “angry”, but alas, I get the following message:

Scene=Scene 1, Layer=Layer 1, Frame=1: Line 3: ‘;’ expected
plinky[“color”]name = “angry”;

At the moment, I am the captain of malformating! Any assistance and advice would be greatly appreciated!

Thanks! :hat: