I am creating a new - "lite" version of the Flex application that I created some time ago. I have ported many of the classes and components to a Flex library project that compiles a SWC file. Since both are Cairngorm applications, I cannot completely eradicate duplicate code, but it is logical that I should be able to share assets - for example, icons (PNG files). What is the best way to do this? I tried to include them in the SWC, but I cannot figure out how to access them in the application. If you can help me figure this out, then my question will be given. Any thoughts?
Here is an example of how I am currently embedding icons / images in a Flex application:
<mx:Script>
<![CDATA[
[Bindable]
[Embed(source="assets/icons/cancelIcon.png")]
private var cancelIcon:Class;
[Bindable]
[Embed(source="assets/icons/saveIcon.png")]
private var saveIcon:Class;
]]>
</mx:Script>
Thanks.