Solved!
What I did:
1) In my lib project, I used the following structure:
src
main
flex
resources
assets
In my lib project, I have a classe that makes references to my assets
files, in this class, I'm using /assets/....
2) In my main project, the reference needs to be: assets/.... (w/o the
start slash!!)
Now everything is working fine.
Thanks, hope this helps someone.
Regards,
PS
On Jan 27, 8:54 am, Pedro Sena <[email protected]> wrote:
> Hi Marvin,
>
> I did it, but got an strange behavior.
>
> First, I was compile with optmize-mojo, it generated a 175k swc and a
> 2mb swf.
>
> I have a lot of images, I believe that the swf size is ok.
>
> Now I'm compiling it w/o optimize and it generated just the 175k swc.
>
> I'm trying to reference a CSS from other project, like this:
>
> <Style source="/assets/css/css.css" />
>
> This css is in my swc lib, but either FB and maven complain about not
> finding this assets.
>
> What am I missing here?
>
> Thanks,
>
> PS
>
> On Jan 26, 10:27 pm, Marvin Froeder <[email protected]> wrote:
>
> > No, just generated a SWC.
>
> > It will contains assets like a Zip does.
>
> > VELO
>
> > On Mon, Jan 26, 2009 at 11:00 PM, Pedro Sena <[email protected]> wrote:
>
> > > I need to generate a swf, correct?
>
> > > How do I point to it from my code, the syntax in my project.
>
> > > I'm trying to make this:
>
> > > <Style source="assets/styles/main.css" />
>
> > > This directory is in my assets project, but my FB complaing about it.
>
> > > Any tips ?
>
> > > I neved did it before :P
>
> > > Thanks
>
> > > On Jan 26, 9:25 pm, Marvin Froeder <[email protected]> wrote:
> > > > What you mean?
>
> > > > VELO
>
> > > > On Mon, Jan 26, 2009 at 10:20 PM, Pedro Sena <[email protected]>
> > > wrote:
>
> > > > > Marvin,
>
> > > > > Just one more question.
>
> > > > > Should I compile it as SWC right?
>
> > > > > How can I point to its contents from an external project?
>
> > > > > Regards,
>
> > > > > On Jan 26, 7:31 pm, Marvin Froeder <[email protected]> wrote:
> > > > > > Changing But by Build will make much more sense :P
>
> > > > > > On Mon, Jan 26, 2009 at 8:21 PM, Marvin Froeder <[email protected]>
> > > > > wrote:
> > > > > > > But an assets SWC.....
>
> > > > > > > No actionScript. Just assets. Then use it every where.
>
> > > > > > > VELO
>
> > > > > > > On Mon, Jan 26, 2009 at 7:49 PM, Pedro Sena <[email protected]>
> > > > > wrote:
>
> > > > > > >> Hi Guys,
>
> > > > > > >> I'm developing a modular project and I'm confused on how should I
> > > > > > >> manage the common resources.
>
> > > > > > >> I had a problem with locales but solved it(thanks marvin) but now
> > > I'm
> > > > > > >> complaining about other resources:
>
> > > > > > >> I need to share some css between my modules
> > > > > > >> I need to share some imagens between my modules.
>
> > > > > > >> I would like to know what is your recommendation to organize
> > > > > > >> this.
> > > Do
> > > > > > >> I need to create another project just to manage this 'assets' ?
>
> > > > > > >> Thanks,
>
> > > > > > >> PS
--~--~---------~--~----~------------~-------~--~----~
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/
-~----------~----~----~----~------~----~------~--~---