The [Embed]
metadata, is used at compile time, not run time. So the variable interpolation that you're trying to do here with path
won't work:
[Embed(source=path, mimeType="image/png")] const IMAGE:Class;
The compiler is expecting a literal string with the path to the image:
[Embed(source="path/to/my/image.png", mimeType="image/png")] const IMAGE:Class;
What you might consider doing is creating a Singleton (or your favorite pattern) class that contains all of your embedded images. Then your classes can refer to the assets in the singleton class and even pass references to them in the constructors of other classes.