Hi,
I have gmail and your message 5 days ago just showed up.
Let me see if I can put together a diagram or something of what I am talking
about.
You can do what you want, trust me. My structure is really 'complicated' due
to the fact I release commercial components. They need css, assets(some
shared others not), swc library etc..
The trick here is to make your theme swc when all your ingredients are
ready. This means breaking out the easy bake oven and baking the theme when
you have the application finished.
I can't exaplain what I am trying to say so I will figure something out.
Peace, Mike
On 28 Mar 2007 06:02:31 -0700, Brett Levine <[EMAIL PROTECTED]> wrote:
Still haven't been able to figure this one out. Do you think it would
be worth trying to make the theme a dynamically loaded stylesheet?
On Mar 22, 2007, at 1:01 PM, Michael Schmalle wrote:
Ah,
You are using a compiled theme? That is what it looks like.
So what I am getting at is, are you trying to access a gif inside an swc?
If you are trying to access embedded content inside an swc you need the
theme compiler arg in your apps config.
either in the flex buider compiler args;
-theme src/lib/theme.swc
or you could create a config xml file that does the same thing.
Sounds to me like I am confused as to what you are actually doing.
Where are you compiling the theme.swc? and is the contents of the swc
located in the theme.css?
Give me a bit more info and I can help. I struggled with this for months
getting the right set up. I use ant to build my components now. Much more
control.
Peace, Mike
On 3/22/07, Brett Levine <[EMAIL PROTECTED]> wrote:
>
> Hi Mike,
>
> I'm curious about your project structure, because I've been trying this
> but to no avail.
>
> I have:
>
> Theme
> src
> theme.css
>
> App
> src
> app.mxml
> lib
> theme.swc
>
> So if app.mxml contains the <mx:style> tag, I would think the path you
> wrote should work. On the other hand if the embeds are actually contained
> in the theme swc, then I would guess the path would be relative to the css
> location. Maybe if I follow your example mine will work too.
>
> brett
>
> On Mar 22, 2007, at 11:25 AM, Michael Schmalle wrote:
>
> Hi,
>
> Use a url like;
>
> source = "../../MyThemProject/images/bg_ main.gif")'.
>
> I do this for css outside of my current project and works fine.
>
> Peace, Mike
>
> On 3/22/07, Brett Levine < [EMAIL PROTECTED]> wrote:
> >
> > Yes, of course. If the .css file and the .mxml file using it are in
> > the same project that works great. However, since my css file is in
> > my theme project, it doesn't work. I get these errors:
> >
> > Invalid Embed directive in stylesheet - can't resolve source 'Embed
> > (source = "/images/bg_main.gif")'.
> >
> > brett
> >
> >
> > On Mar 22, 2007, at 8:52 AM, Tom Chiverton wrote:
> >
> > > On Wednesday 21 Mar 2007, Brett Levine wrote:
> > >> I've built a theme swc in a library project using Flex Builder
> > >> 2.0.1. But I just can't figure out how to get Embeds in my theme's
> > >> CSS file to use relative paths. This is a problem since my team is
> > >> mixed between PC and Mac users. Here's an example:
> > >>
> > >> From application.css at Theme project's src folder:
> > >>
> > >> .main
> > >> {
> > >> backgroundImage: Embed(source="/Users/brett/Documents/dev/
> > >> repository/projects/flex/BlueTheme/src/images/ bg_main.gif");
> > >> }
> > >
> > > You should use a path here relative to the source code root, not
> > > the file
> > > system root.
> > > I'd suggest '/images/bg_main. gif'
> > >
> > > --
> > > Tom Chiverton
> > > Helping to assertively maintain eigth-generation content
> > > On: http://thefalken. <http://thefalken.livejournal.com>livejournal.com
> > >
> > > *************************************** *************
> > >
> > > This email is sent for and on behalf of Halliwells LLP.
> > >
> > > Halliwells LLP is a limited liability partnership registered in
> > > England and Wales under registered number OC307980 whose registered
> > > office address is at St James's Court Brown Street Manchester M2
> > > 2JF. A list of members is available for inspection at the
> > > registered office. Any reference to a partner in relation to
> > > Halliwells LLP means a member of Halliwells LLP. Regulated by the
> > > Law Society.
> > >
> > > CONFIDENTIALITY
> > >
> > > This email is intended only for the use of the addressee named
> > > above and may be confidential or legally privileged. If you are
> > > not the addressee you must not read it and must not use any
> > > information contained in nor copy it nor inform any person other
> > > than Halliwells LLP or the addressee of its existence or contents.
> > > If you have received this email in error please delete it and
> > > notify Halliwells LLP IT Department on 0870 365 8008.
> > >
> > > For more information about Halliwells LLP visit
www.halliwells.<http://www.halliwells.com>
> > com.
> > >
> > >
> > >
> > > --
> > > Flexcoders Mailing List
> > > FAQ:
http://groups.<http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt>yahoo.com/
> > group/flexcoders/files/flexcoder sFAQ.txt
> > > Search Archives:
http://www.mail-<http://www.mail-archive.com/flexcoders%25>archive.com/
> > flexcoders%
> > > 40yahoogroups. <http://40yahoogroups.com> com
> > > Yahoo! Groups Links
> > >
> > >
> > >
> >
> >
>
>
> --
> Teoti Graphix
> http://www.teotigra <http://www.teotigraphix.com> phix.com
>
> Blog - Flex2Components
> http://www.flex2com <http://www.flex2components.com>ponents.com
>
> You can find more by solving the problem then by 'asking the question'.
>
>
>
--
Teoti Graphix
http://www.teotigra <http://www.teotigraphix.com>phix.com
Blog - Flex2Components
http://www.flex2com <http://www.flex2components.com>ponents.com
You can find more by solving the problem then by 'asking the question'.
--
Teoti Graphix
http://www.teotigraphix.com
Blog - Flex2Components
http://www.flex2components.com
You can find more by solving the problem then by 'asking the question'.