# Need script for a Close Window button

**URL:** https://forum.kirupa.com/t/need-script-for-a-close-window-button/197261
**Category:** Uncategorized
**Created:** [August 15, 2006, 12:19am UTC](https://forum.kirupa.com/t/need-script-for-a-close-window-button/197261 "2006-08-15T00:19:51Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Login418](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/login418/32/2712_2.png) [@Login418](https://forum.kirupa.com/u/Login418)
#### Post date: [August 15, 2006, 12:19am UTC](https://forum.kirupa.com/t/need-script-for-a-close-window-button/197261/1 "2006-08-15T00:19:51Z")

</div>

Sorry guys I just started Flash 3 weeks ago so I’m a Newbie!:sigh:

I made a button to load a .swf file on screen using this script:

on (release) { containerMC.loadMovie(“movieTest1.swf”);  
}

Now I want to create a button in the movieTest1.swf file that will remove it from the screen. Basically its a close window button. Is this possible? What script do I assign to the button?
