It looks like views/MyView.as and TEST/add.png are in the same source
path.  In MyView.as, You should be able to do this:

[Embed(source='/TEST/add.png')]

I found this link pretty useful (except for the bit about multiple
source paths):

http://livedocs.adobe.com/flex/201/html/embed_082_3.html#176435

--- In flexcoders@yahoogroups.com, "tddclare" <[EMAIL PROTECTED]> wrote:
>
> I think my issue is much more fundamental.
> 
> I read about linking to common resource folders here:
> 
> http://livedocs.adobe.com/flex/2/docs/00000228.html
> <http://livedocs.adobe.com/flex/2/docs/00000228.html>
> 
> I created a linked folder in my project to a folder called "TEST" that
> has one .png file in it.
> 
> My project Navigator looks like this:
> 
> MyProject
> - views
> -- MyView.as
> - TEST
> -- add.png
> 
> ...and TEST has the little "shortcut folder" icon next to it as I would
> suspect.
> 
> Inside MyView.as, I tried to embed the png file:
> [Embed(source="../TEST/add.png")]
> 
> but it could not find it.
> 
> Can you not use Flex Builder's own linked folders to embed files?
>


Reply via email to