A colleague of mine was able to successfully use a resource bundle SWF generated by compile-swf as a resource bundle module loaded programatically with ResourceManager. Turns out RSLs are more of linking pattern for the parent application/module SWF at compile time; if you want to load a SWF into an application using ModuleManager and that SWF is being used as an RSL in another application, then as long as the SWF isn't optimized for the application using it as an RSL, it is possible. Additionally, we found another use case for using modules over RSLs for our scenario. From what we could find, RSLs are always loaded in the first frame of the Flash movie, whereas modules can be loaded after the first frame.
All of this may be common knowledge to some, but we were pretty clueless until we dug in. The good news it we can still use flex- mojos to do everything we need, we just need to be creative with creating projects for shared resources/styles we want to use as modules. -Brian On Aug 13, 1:04 pm, Brian <[email protected]> wrote: > @Marvin - Ok, np. I'll dig more into the problem from the mxmlc side > and do a couple test of my own. We will potentially be embedding > locale specific assets in resource bundles and offering them over the > wire to 3rd parties, so we wanted to use modules for our resource > bundles rather than link to them as RSLs. I'll let the list know what > I find for what it's worth. > > Thanks for the help. > > -Brian > > On Aug 13, 12:48 pm, Marvin Froeder <[email protected]> wrote: > > > Hi Brian, > > I have no answers to your questions.... > > > I just input parameters into compiler API and zap.... got a locales SWF. > > Now, if that is a module, RSL or neither, I really don't know. > > > Neither if you can unload a locale. But why do you wanna do something like > > that? > > > VELO > > > On Thu, Aug 13, 2009 at 1:30 PM, Brian <[email protected]> wrote: > > > > To add to my last question, and maybe this is more of an SDK > > > question. Can I use resource bundle SWFs that have been created to be > > > used as RSLs as modules to load and unload at runtime in another > > > application? > > > > -Brian > > > > On Aug 13, 11:41 am, Brian <[email protected]> wrote: > > > > I need to generate resource bundle modules I can load/unload at > > > > runtime. I noticed the configuration option for <runtimeLocales> > > > > under compile-swf. If I omit the rslUrls configuration option under > > > > compile-swf but list runtimeLocales, will flex-mojos product resource > > > > bundle modules for me, or will RSLs always be produced? Thanks in > > > > advance for the help. > > > > > -Brian > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Flex Mojos" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/flex-mojos?hl=en?hl=en http://blog.flex-mojos.info/ -~----------~----~----~----~------~----~------~--~---
