Hey All,

 

First post to flexcoders.

 

I'm trying to link to a css file in a Flex Library project and I can't
seem to figure out how to get it to work.  MXML files and AS Classes
work without a hitch, but I can't seem to either @Embed() images or
reference stylesheets.

 

I've tried a bunch of ways: using resource folders, linking to the
library project via the "Library Path" tab, linking to the project via
Project References.  I'm sure I've tried other things.  I've tried
linking to the file in all sorts of ways (relative paths, absolute
paths, based on the Library Path "source attachment" attribute, based on
the Project Reference name, based on paths to the linked resource
folder, etc, etc.) 

 

Pretend I have:

A Flex Library project at z:\shared
A Flex Project at z:\my_project

 

The Library project has a CSS file located at
z:\shared\assets\css\mycss.css

 

In my z:\my_project\src\main.mxml file:

<mx:Application ... >

            <mx:Style source=" .... "/>

</mx:Application>

 

2 questions then:
What method should I use to link my Library Project to my Flex Project?

What is the path that goes into the Style tag?

 

I can link to it directly on the file system without a problem, but that
doesn't make the code very portable.

 

Can someone point me in the right direction?  There's tons of
documentation on everything but my particular issue :P

 

Jay Proulx

Application Developer

Internet Delivery Services - eVision Team

[EMAIL PROTECTED]

(613) 783-6711

 

 

Reply via email to