Closing a jpg?

I have a gallery where I’m loading jpgs that are in swfs…into my current scene. These are made into buttons. So I want to know how to colse the loaded swf by clicking on it???

Rob