سؤال

I'm using the reflection classes of Flex and I've notice when I publish in debug all of a components style metadata is found by describeType. But if I create a release build none of the styles show up.

هل كانت مفيدة؟

المحلول

You can add metadata into a release build using the compiler argument keep-as-metadata. The default Flex configuration probably doesn't include the style metadata because it is not used at runtime.

This compiler argument will keep the style metadata in there when creating a release build:

keep-as3-metadata+=Style
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top