How do u target a Movie clip in an external swf file?

Hi All,

I have 2 files- Main.swf and web.swf.

Web.swf contains thumbnails, which when clicked will load movieclips that contain images. Loading is done on the fly based on the thumbnail clicked. Each movie clip is being loaded using the below code-

var container:MovieClip = new MovieClip();

Now the Main.swf calls the above web.swf on runtime using the below script-

var request:URLRequest = new URLRequest(“web.swf”);
var loader:Loader = new Loader()

Works fine and slideshow works too. The problem arises when i click on other links in this main.swf. I am able to unload the above swf file BUT the last loaded MC in the web.swf (container) still remains! I used the below code to remove the swf -


How do i make that container in web.swf to go away? i tried loader.contianer.unload(); and i get the following error-

1119: Access of possibly undefined property container through a reference with static type flash.display:Loader.

Pls help as im trying to fig this one out…

warm regds