. . . for a collection of data, like a set of stored variables.
A loosely typed Proxy subclass which could still handle type checking internally but would lose strict typing in its interface. This would allow you to set/get/etc the variables as if the were properties of the instance, eg:
var myCollection:Collection = new Collection();
myCollection.x = 3;
trace(myCollection.x);
delete myCollection.x;
[SIZE=“4”]OR[/SIZE]
A strongly typed Object subclass which obviously allows strict typing but requires that you use get and set methods:
var myCollection:Collection = new Collection();
myCollection.setVar("x", 3);
trace(myCollection.getVar("x"));
myCollection.delVar("x");
The second method seems like a jump back to Flash Player 4 but loose typing is equally lame.
[SIZE=“4”]Thoughts???[/SIZE]
Thanks! :hoser: