I've had a search around and couldn't apply anything i found to my code to get it to work.
I'm building a site where navigating to each page (frame) will load an external swf with the content. ideally i would like for the content to unload when i navigate away from the frame, so that i can then load a new swf.
here's my as3 for loading the swf:
var swfLoader:Loader = new Loader();
stage.addChild(swfLoader); swfLoader.x = 0; swfLoader.y = 100;
var bgURL:URLRequest = new URLRequest("gallery_swf/reg_slide.swf");
swfLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadProdComplete);
swfLoader.load(bgURL);
function loadProdComplete(e:Event):void {
trace("file loaded");
}