I'm really new to flash, but working on a portfolio. I'm able to load the .swf files I've done and they work with clicking the buttons. But when I click the first button, the .swf file will stay there and disappear when I click on the next button. The .swf file from the second button just goes on top of it. I've tried to use this code:
[myloader.addEventListener(MouseEvent.CLICK, removeimage);
function removeimage(e:MouseEvent) {
and it won't work. the .swf file still stays.

I've used the function [myloader.unload();] as well. with that code if you click on the .swf it will go away. But I want to be able to click on the next button and have the previous .swf file disappear.
Any suggestions?