Assign embedded image file to Image source
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" initialize="init( )"> <mx:Script> [Embed(source="logo.jpg")] private var sunAsset:Class; private function init( ):void { sunImage.source = sunAsset; } </mx:Script> <mx:Image id="sunImage"/> </mx:Application>