I have created an application that passes a url that may be a swf, image or flv. The content will be loaded into the same container. I'm able to load the respective formats, but it creates a new Loader each time. Is there a way to create one Loader for each format and update the container with its respective formats while removing the previously loaded content? For example: I load a jpg into "mc_container" then remove that jpg and load a swf into "mc_container" What I tried doesn't work:
public function DisplayVisual() {
LoaderMax.activate([ImageLoader, SWFLoader, VideoLoader]);
}
function loadVisual(visualUrl:String):void {
var visualLoader:LoaderCore = LoaderMax.parse(visualUrl, {name:"parsedLoader", container:mc_container});
visualLoader.load();
}