I’m using an object in one of my classes but I’ve noticed that it’s showing some wierd behaviour. It’s not an end of the world thing but was wondering if someone could explain this please:
var someObj:Object = new Object();
someObj["var1"] = "Hi";
trace(someObj.var1) //outputs undefined
Is this intentional? I always thought the dot notation and the array notation were interchangeable.