IIRC, compiled style swfs are treated just like other runtime loaded assets (images, modules, runtime resource bundle swfs, etc.)
You could use the copy-dependencies maven plugin to copy the artifacts into the correct place in your target directory. Logan On Tue, Dec 15, 2009 at 12:47 PM, velo <[email protected]> wrote: > Hrmmm, I never tried to do anything closer to that.... but how do you > do that using mxmlc? I never hear about one swf depending on > another.... > > > VELO > > On Dec 15, 4:21 pm, Colm <[email protected]> wrote: >> I'm looking for some help in using maven to manage a dependency on a >> stylesheet i want to load at runtime in my flex application. >> >> I currently have 2 maven projects: project A contains my css file >> which i can compile into a SWF using flexmojos. project B is my main >> application and i want to use the Flex StyleManager to load the swf >> generated by project A at runtime . If i manually copy the generated >> style.swf into sr/main/resources/style, i can load it using the >> following code: >> >> StyleManager.loadStyleDeclarations("style/style.swf",true); >> >> However I want maven to automatically include the syle.swf when i >> build project B. I have added project A as a dependency on B, but I'm >> unsure where or how it bundles up the style.swf within the swf >> generated for project B? What line of code should i use to enable the >> StyleManager find the style.swf file? -- 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/
