# Removing external .swf file once youre done with it

**URL:** <https://forum.kirupa.com/t/removing-external-swf-file-once-youre-done-with-it/299664>\
**Category:** Uncategorized\
**Created:** [November 9, 2009, 8:00am UTC](https://forum.kirupa.com/t/removing-external-swf-file-once-youre-done-with-it/299664 "2009-11-09T08:00:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![saleel](https://avatars.discourse-cdn.com/v4/letter/s/45deac/32.png) [@saleel](https://forum.kirupa.com/u/saleel)\
**Post date:** [November 9, 2009, 8:00am UTC](https://forum.kirupa.com/t/removing-external-swf-file-once-youre-done-with-it/299664/1 "2009-11-09T08:00:59Z")

</div>

Hi guys  
Am new to all this and completely stuck.  
I was trying to intergrate two game flash files that I created, by combining them into one file (on one timeline), but was having issues with making my timer stop…  
Anyway…  
As the lesser of two evils (or so I thought) I decided to load one of the games into the other file on a particular button click as an external .swf. This solved the timing issue, but now  
I dont know how to get rid of the .swf once im done playing it and ready to move on with the original game!  
I need some buttoncode (AS2) to remove .swf on button click.  
Anyone?  
Thanks  
Stephen.  
ps. button code to load .swf looks like this…  
on (release){  
LoadMovieNum(“racing\_part1\_me.swf”,2)  
\_level2.gotoAndPlay(25);  
if (\_level2.variable==“yes”) {  
\_level2.play();  
}  
}
