Skip to main content
Known Participant
October 23, 2009
Answered

What causes generation of _globalStyle class? It's in my non-Flex SWF.

  • October 23, 2009
  • 1 reply
  • 627 views

Hi,

I am working on an AS3 project, compiling with mxmlc from Flex 4 beta 2 SDK. I am having a problem with mxmlc generating (what seems to be) some Flex style classes and putting them in my SWF. I only notice this classes when I view my SWF in a decompiler. This is causing the Flex framework to be compiled into my SWF, making it about 150k bigger. If I exclude flex classes from being included via -external-library-path I obviously get a runtime error since the Flex classes are not available.

The problem seems to stem that I am putting class on the 2nd frame of my SWF by using the highly undocumented [Frame] metadata tag. If I remove this tag, the Flex style classes are not inserted into my SWF. How can I stop mxmlc from injecting these classes into my SWF?

This topic has been closed for replies.
Correct answer matt_chotin

I think we have a bug submitted on this that we're looking into?

1 reply

matt_chotin
matt_chotinCorrect answer
Inspiring
October 23, 2009

I think we have a bug submitted on this that we're looking into?

Known Participant
October 24, 2009

Thanks - https://bugs.adobe.com/jira/browse/SDK-23772