any loaded swf that you want to remove can use the removeMovieClip() method applied to its main (loaded swf) timeline.
so, from the main timeline of your loaded swf:
thanks for quick respond
So the first of all my main.swf would load, within it i would have a button. If i click on button will take me to frame 40 ( just example ) where i will have this.loadMovie("first.swf"), when this file will be loaded i want to have other button with in the first.swf which will take me back to main.swf and now you are suggesting to use this.removeMovie("first.swf")?
I am not sure if i got you answer right
Thanks again for help i am quite new to ActionScript as you can tell.
your setup has so many limitations it's very undesirable. but if that's what you want to do, you would use the following in your loaded swf: