Here are the two syntaxes to include images at runtime or embed movieclips from a .swf file. In FlashCS3 you have to “export for actionscript” then simply “test movie” and copy the .swf file inside your flex web. In this example “star” is the name of my movieclip inside my flash file.
import flash.net.navigateToURL;
private function getURL(url:String):void {
var request:URLRequest;
request = new URLRequest(url);
navigateToURL(request);
}
]]>
You can probably use this with any control that has labelField but I discovered it with mx:List, just define the name of a function and then use any script you want to manipulate the label based on some data source.
SHOW CODE