In actionscript object class can act as a collection that stores key,value combinations:
var o:Object = new Object();
o["a"] = 1;
But when I'm trying to extend it and add some custom functionality:
var mo:MyObject = new MyObject();
mo["a"] = 1;
I get this:
ReferenceError: Error #1056: Cannot create property a on MyObject.
How would I solve this? Thanks.