Trace Objects in Actionscript – From [object Object] To Object keys = values
Ever traced an object like so:
trace(object) // this gives out: [object Object]
which means nothing other than it was able to recognize the type of the object, but gives us nothing about the contents of the object. For this reason, the joyful people at Adobe have provided us with ObjectUtils (need to import mx.utils.ObjectUtil)
And this is done like so:
trace(ObjectUtil.toString(objectInstance)); // returns all the keys/values of the objectInstance.