I have an swf file (swf2) that loads into my main swf file (swf1). On the click of a button (which is housed in the loaded swf file swf2) I need to stop swf2 from running and load on new swf (swf3).

I am using removeChild(loader);

But the problem is loader in in the parent (swf1) swf, how do I reference it?

Sorry if this is not enough info, I am not really an expert here.