I have written some generic classes that my team and I are keeping in a centralized folder on our network. I'm having problems with finding the right path to embed png files into those classes.
Say I have a class (MyClass) in the com.mycompany.somefolder package. It uses a .png file called "add.png" for its add button's default enabledImage. MyTeamsClassLibrary - icons -- add.png - com -- mycompany --- somefolder ---- MyClass.as I have MyTeamsClassLibrary added to my project as a Source Path in FlexBuilder (the eclipse plugin). I tried relative path embeds inside of MyClass: [Embed (source="../../../icons/add.png")] which I thought would work, but it didn't seem to like that (unable to resolve '[same path here]' for transcoding) I realize I could put in the full path (\\MyServer\MyTeamsClassLibrary\icons\add.png) but that will stink when we want to take a copy of the library on an airplane -- we'll need to replace every file reference to make the compiler go. Anyone know a good way to embed assets in a generic class library? I'd like to keep them all centralized (in an icons folder) rather than scatter them internally across hundreds of project files...) Thanks! -- TC

