Explanation

Below are two SWF files that were built in Flex 4.6. They were compiled from the very same code base. The SWF on the left was compiled as a debug SWF, whereas the one on the right was compiled as a release SWF with the following compiler option:

-keep-as3-metadata+=ArrayElementType

The text is generated by calling FlashUtils.describeType() on a very simple custom class. Note that the output in the debug SWF is significantly more detailed than that in the release SWF, but that the ArrayElementType metadata is retained. Contrast this output with the original version of this demo, which omitted the compiler option.

Debug SWF

Release SWF

Content on this page requires a newer version of Adobe Flash Player.

Get Adobe Flash player

Content on this page requires a newer version of Adobe Flash Player.

Get Adobe Flash player