However, the problem with the above code is that it throws a not-so-clear run-time exception:
Error: Error #2099: The loading object is not sufficiently loaded to provide this information.
Yeah, that's really helpful! This error prevents you from being able to see the event object except for actually setting a breakpoint in the Flex Builder UI and re-running the application in debug mode. However, there's a workaround that you can use to get the object to dump out correctly:
The key to the above modification is the last argument, which is an array of options to exclude when dumping the object. In this case, since the loading object info isn't available, just get rid of it!
I certainly recognize that there are several ways to inspect an object at runtime, and using ObjectUtil.toString() is just one of them. However, in the case that you use the above approach, remember to exclude the loaderInfo data from the dump, and you'll be all set.