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...