You can also use a source path like this from any source file:

/../     EX: source="/../assets/images/logo.gif"

to get to the base of the src folder and then back out of it.

--- In [email protected], "oneworld95" <[EMAIL PROTECTED]> wrote:
>
> Thanks. This finally worked for me,
> 
> Application {
>   backgroundImage: "global/media/flowers.jpg";        
>  }
> 
> I'm guessing Embed directives are checked at compile time and for
> whatever reason, Flex compiler couldn't find the file. 
> 
> --- In [email protected], "Douglas Knudsen"
> <douglasknudsen@> wrote:
> >
> > and if you are compiling the CSS for runtime loads, the path will be
> > different yet again
> > 
> > 
> > Douglas Knudsen
> > http://www.cubicleman.com
> > this is my signature, like it?
> > 
> > 
> > On Wed, Oct 29, 2008 at 4:59 PM, Ryan Graham <Ryan.Graham@>wrote:
> > 
> > >    And the path is relative to where you are declaring the
> mx:Style that
> > > loads the stylesheet file, of course. :)
> > >
> > > HTH,
> > > Ryan
> > >
> > >  ------------------------------
> > > *From:* [email protected]
> [mailto:[EMAIL PROTECTED] *On
> > > Behalf Of *Ryan Graham
> > > *Sent:* Wednesday, October 29, 2008 1:55 PM
> > >
> > > *To:* [email protected]
> > > *Subject:* RE: [flexcoders] Invalid Embed directive
> > >
> > >   The compiler expects that image path to be in one of your
> project source
> > > folders during build. If that path exists in your bin folder
only, the
> > > compiler will never see it for an embed operation.
> > >
> > > HTH,
> > > Ryan
> > >
> > >  ------------------------------
> > > *From:* [email protected]
> [mailto:[EMAIL PROTECTED] *On
> > > Behalf Of *Jim Hayes
> > > *Sent:* Wednesday, October 29, 2008 1:20 PM
> > > *To:* [email protected]
> > > *Subject:* RE: [flexcoders] Invalid Embed directive
> > >
> > >
> > > It can be confusing as to where the file thinks it is at compile
> time - in
> > > fact I remain fairly confused about it :(
> > > You might try "/global/media/flowers.jpg" or
> "./global/media/flowers.jpg"
> > > if you need to go up a directory then ../ works fine.
> > >
> > > -----Original Message-----
> > > From: [email protected] <flexcoders%40yahoogroups.com> on
> behalf
> > > of oneworld95
> > > Sent: Wed 29/10/2008 19:56
> > > To: [email protected] <flexcoders%40yahoogroups.com>
> > > Subject: [flexcoders] Invalid Embed directive
> > >
> > > Hi. I've got a Style tag with the following style in it,
> > >
> > > Application {
> > > background-image: Embed(source="global/media/flowers.jpg");
> > > }
> > >
> > > I keep getting the "Invalid Embed directive in stylesheet - can't
> > > resolve source." I know the image exists and is at that path. Help!
> > >
> > > __________________________________________________________
> > > This communication is from Primal Pictures Ltd., a company
> registered in
> > > England and Wales with registration No. 02622298 and registered
> office: 4th
> > > Floor, Tennyson House, 159-165 Great Portland Street, London, W1W
> 5PA, UK.
> > > VAT registration No. 648874577.
> > >
> > > This e-mail is confidential and may be privileged. It may be read,
> copied
> > > and used only by the intended recipient. If you have received it
> in error,
> > > please contact the sender immediately by return e-mail or by
> telephoning
> > > +44(0)20 7637 1010. Please then delete the e-mail and do not
> disclose its
> > > contents to any person.
> > > This email has been scanned for Primal Pictures by the MessageLabs
> Email
> > > Security System.
> > > __________________________________________________________
> > >   This message is private and confidential. If you have received
it in
> > > error, please notify the sender and remove it from your system.
> > >
> > > This message is private and confidential. If you have received it
> in error,
> > > please notify the sender and remove it from your system.
> > >  
> > >
> >
>


Reply via email to