Building theme SWF with recent nightly
I'm trying to upgrade from the Flex 4 Beta 2 SDK to nightly build 12891, and am having an issue with our dynamically-loaded theme SWF:
When the theme SWF is built via ant, running mxmlc on the CSS file, at theme-loading time our app tries to download the framework RSLs again (i.e., they were already downloaded when the app initially loaded). It also attempts to load a locale (which was also already loaded).
When the theme SWF is built via Flash Builder (by selecting the 'Compile CSS to SWF' option on the CSS file, and using the same nightly SDK), it does not attempt to load the framework RSLs or a locale.
This behavior differs from what we see when using the Beta 2 SDK; in that case, I never noticed the RSLs being requested when the theme was loaded.
Also, the theme SWF that is created with ant is smaller (50-some kb) than the one created by Flash Builder (80-some kb), when using nightly 12891.
When using the Beta 2 SDK, the theme SWF created with ant was larger than the one created by Flash Builder, using the same compiler options.
This implies that Flash Builder is providing some different options to mxmlc than our ant target is, but it's a mystery to me what those are. It seems that the default behavior of mxmlc has changed between the two SDKs.
Our ant call to mxmlc is quite simple: we provide the CSS file as the source, add an assets directory to the source path, and set our main application SWC as an external library (so skin files can resolve their host components).
I tried adding the framework SWCs as external libraries, but that didn't change the behavior.
What options should I be providing to replicate Flash Builder's compile command?
Cheers,
Aron
