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?
Nothing jumps out at me from the generated config.xml; perhaps it'll be more meaningful to you:
This is from the top-level project that also contains the CSS file being compiled into a SWF. (Our main code base is in another, library project.)
Bug or not, am I correct in thinking that Flash Builder is just invoking mxmlc to compile the CSS file? I.e., there is some set of options that I can provide to mxmlc to achieve the same (working) result?
Europe, Middle East and Africa