Hello all,
I am using a static class to store attributes about various entities in my project. They are represented in 3d space by a typical position vector formatted as (x,y,z). I am trying to store values in the dictionary like so:
var a:Array = [25,25,25];
var d:Dictionary = new Dictionary();
d[a] = "Hello, world!";
var b:Array = [25,25,25];
trace(d**); // --- error
trace(d[ [25,25,25] ]); // --- error
Is there a way to accomplish what I’m trying? Can dictionary keys only be object references, or is there is a way to use an array as a key?
Thank you,
Brian Dolhansky