Hi - In my simple code I am adding a swf via addChild.

var nws:Loader = new Loader()
    nws.load(new URLRequest("news.swf"))

however further on in my code - I want this swf or nws var to be removed when clicking on another button … so I use removeChild(nws); within another function.

But AS3 comes up with an error saying that nws is undefined property with this removeChild line.

How else can I say “when nws is loaded - and upon clicking this button - remove it” ??

Thanks …//