function finishLoading(loadEvent:Event) {
addChild(loadEvent.currentTarget.content);
}
function errorHandler(errorEvent:Event):void {
trace("file missing");
}
Now everything work great but what I want is once the "example.swf" is loaded the user can click a button inside the "example.swf" and this swf close so I can navigate in the first swf.
If I understand your application, and how you are adding the example swf... then you would not want to use external interface and close the browser window. You would just want to remove the Loader from the display list inside of flash.
You would do this by calling removeChild(my_Loader);
if you are writing the code from inside the example.swf you would need something like this
function that tells your button to close{
if(parent is Loader){
MovieClip(this.parent.parent).removeChild(this);
}
}