Assigning an image to a variable to decouple its location
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" backgroundColor="white"> <mx:Script> [Bindable] [Embed(source="logo.jpg")] public var imgStar:Class; </mx:Script> <mx:Image source="{imgStar}"/> </mx:Application>