ha, very funny :-) Seriously though, tell me if my expectation is incorrect.
According to... https://docs.sonatype.org/display/FLEXMOJOS/Adding+libraries+to+compilation ... setting "external" should omit content, reference symbols but *not* cause RSL references from the SWF. Unfortunately Operating System tracing shows the RSL SWFs and SWZs being loaded again at each Flex Module load and (and I guess this is part of your reason for the FAQ link), the config dump xml shows these scope:external libraries in the RSL list: <external-library-path> <path-element>C:\Users\MyUser\Dev\FlexMojoTest\simple-flex- modular\library\target\library-1.0-SNAPSHOT.swc</path-element> </external-library-path> // (fine, I'd expect the above) <runtime-shared-library-path> <path-element>C:\Users\MyUser\Dev\FlexMojoTest\simple-flex- modular\library\target\library-1.0-SNAPSHOT.swc</path-element> <rsl-url>../../../library.swf</rsl-url> <policy-file-url>http://fpdownload.adobe.com/pub/swz/ crossdomain.xml</policy-file-url> <rsl-url>http://fpdownload.adobe.com/pub/swz/flex/1.0-SNAPSHOT/ library_1.0-SNAPSHOT.swf</rsl-url> </runtime-shared-library-path> // (problem -- wouldn't expect this! We're using scope:caching for the Adobe libraries hence the whacky RSL paths. Regardless of how mad it looks, it actually works!) I can supply a output files or a customized version of simple-flex- modular that shows the behaviour, if helpful. Tell me where you'd prefer I send it (direct to you?) Btw, in case you're wondering why I care so much, with the reloading of all RSLs for each module, they take ~1min to appear when requested (vs. <1second when linked correctly). And we do N of them meaning our screen of these takes minutes to show :-( Sadly, we're in the middle of a deliverable deadline atm so I'm getting to desperate stakes here. Had it been otherwise, I'd be happy to hunt the source and suggest a fix. Thanks as always, Rupert. On Sep 20, 7:57 pm, Marvin Froeder <[email protected]> wrote: > Take a look on this link:http://flexmojos.sonatype.org/faq.html#9 > > Lemme know if it helps. > > VELO > > On Mon, Sep 20, 2010 at 3:54 PM, Rupert <[email protected]> wrote: > > Hi, > > How can I get "external" linking for Modules to work in FlexMojos 4 > > with Flex 4 as it seems to in FlashBuilder? > > When I set libraries as scope "external", they behave like RSLs. Some > > details follow... > > > We have the following: > > - client - 1 project that uses the all of following > > - 'content' - N * FlexMojo project that build M * Flex Modules each > > that are dynamically loaded into client > > - library projects: > > client uses as FM scope:rsl. > > content uses as FM scope:external > > - Adobe platform libraries: > > client uses FM scope:caching. > > content uses as FM scope:external > > > At startup, client loads all RSLs then proceeds to load some content. > > > In FlashBuilder, when the client loads content, all RSLs are already > > loaded by the client so all symbols resolve fine. > > In FlexMojos, when the client loads content, they each reload all > > RSLs !?! > > How can we stop this from happening? > > > From what I can tell, FlexMojos 4 considers "external" the same as > > "rsl". Is this expected or have I made a mistake? > > > Example load order FlexMojos actual: > > client > > adobe-rsl 1 > > adobe-rsl 2 > > our-rsl 1 > > our-rsl 2 > > our-module 1 > > adobe-rsl 1 > > adobe-rsl 2 > > our-rsl 1 > > our-rsl 2 > > our-module 2 > > adobe-rsl 1 > > adobe-rsl 2 > > our-rsl 1 > > our-rsl 2 > > ... > > > Example load order FlashBuilder + desired: > > client > > adobe-rsl 1 > > adobe-rsl 2 > > our-rsl 1 > > our-rsl 2 > > our-module 1 > > our-module 2 > > ... > > > Thanks as always, Rupert. > > > -- > > 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]<flex-mojos%[email protected]> > > For more options, visit this group at > >http://groups.google.com/group/flex-mojos > > >http://flexmojos.sonatype.org/ -- 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 http://flexmojos.sonatype.org/
