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.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.com. > > > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Search Archives: http://www.mail-archive.com/flexcoders%<http://www.mail-archive.com/flexcoders%25> > 40yahoogroups.com > Yahoo! Groups Links > > >
-- 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'.