Load image file for an Image control with load method
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:Image id="sun" autoLoad="false"/> <mx:Button label="Load Image" click="sun.load('logo.jpg')"/> </mx:Application>