Sorry, I must have mis-worded my response.

You don't have to make any shortcuts or links since your assets are in
the same folder as your packages:

- root
-- images
---- image1.png
---- image2.png
-- com
--- mycompany
---- MyApp.as

In MyApp.as, you can embed any image in 'images' by prepending "/" to
the beginning of the path:

[Embed(source="/images/image1.png")]
public var Image1:Class;

I think that will work for the situation you described -- you don't
need to do any hackery.

-------------------------------------

To answer your link question: I assume you're trying to "link" the
assets directory under root/com/mycompany so that MyApp.as can refer
to it as "assets/image1.png" by creating a shortcut under
root/com/mycompany that points to root/assets.  Unfortunately that
won't work because you can't create proper symbolic links in Windows, see:

  http://answers.google.com/answers/threadview?id=341355

If you're on any Unix-based system (this includes Mac OSX), you can
create a proper link like the one you wanted to create using the `ln`
command.

Again, you don't have to worry about this, because you don't even need
to create a link.

--- In [email protected], "tddclare" <[EMAIL PROTECTED]> wrote:
> What kind of hackery is needed?  It seems silly to not be able to use
> common resources across projects -- what's the point of all this great
> OOP practice if I can't reuse my items across projects?
> 
> By the "in windows" I assume you mean that if I were (say) on a Mac [I
> WISH!] and tried this it would work?
>


Reply via email to