Tuesday, March 4, 2008

callLater() and ObjectUtil.toString()

Couple useful Flex methods for the reference:

If you want to print out all properties of the object, i.e. see comprehensive string representation of any object, use the following example:
Alert.show("IOError: " + mx.utils.ObjectUtil.toString(event));

Another useful method is
callLater()
The callLater() queues an operation to be performed for the next screen refresh, rather than in the current update. Without the callLater(), you might try to access a property of a component that is not yet available.