For prosperity I added this to the discussion. (I'm not crazy, someone else tried!)
Just saw this http://www.richinternet.de/blog/index.cfm?mode=entry&entry=E0626A2C-AD30-2D81-D6A356949044893B [...]So in the end I created a simple prototype that is actually capable of loading a single SWF file at runtime that hosts the customized CSS and ResourceBundle data. The thing is that Flex 3 under the hood uses the same mechanism to load ResourceBundle SWFs and CSS SWFs - they are actually plain Modules. So I created a new Module, put the ResourceBundle Metadata and a Style block into it, compiled it to a SWF (using the -load-externs switch on the compiler) and loaded it into the main AIR application After the SWF was loaded the new CSS Stylesheet and the ResourceBundles were applied correctly! Look Ma, only one SWF :) [...] I still don't get why the flex dev team didn't thought about merging both. On Fri, Sep 19, 2008 at 5:44 PM, Gordon Smith <[EMAIL PROTECTED]> wrote: > No, sorry. We didn't design style modules and resource modules to > co-exist as a single SWF. > > > > - Gordon > > > > *From:* [email protected] [mailto:[EMAIL PROTECTED] *On > Behalf Of *Guillaume Malartre > *Sent:* Friday, September 19, 2008 9:54 AM > *To:* [email protected] > *Subject:* [flexcoders] Flex loadResourceModule and loadStyleDeclarations > > > > Hi, > > I use mxmlc to compile a style sheet and localization file > > mxmlc > -locale=fr_CA > -source-path+=locale_succes_scolaire/{locale} > -allow-source-path-overlap=true > -include-resource-bundles=AppModel > -include-libraries=Assets_Succes_Scolaire.swc succes_scolaire.css > > Then in Flex I would like to load the swf in one shot, the Resources and > the Styles. > > Is it possible? loadStyleDeclarations definitely does not include my > resource in the project once completed. > > Another question: Anyone know why mxmlc always give a file size starting > with 20kB of stuff? > > -- > Merci, > Guillaume > > Guillaume Malartre > Programmeur-Analyste, Scolab > 514-528-8066, 1-888-528-8066 > > Besoin d'aide en maths? > www.NetMaths.net > > > -- Merci, Guillaume Guillaume Malartre Programmeur-Analyste, Scolab 514-528-8066, 1-888-528-8066 Besoin d'aide en maths? www.NetMaths.net

