# Close command for pop-up

**URL:** https://forum.kirupa.com/t/close-command-for-pop-up/85486
**Category:** flash
**Created:** [April 5, 2005, 4:11am UTC](https://forum.kirupa.com/t/close-command-for-pop-up/85486 "2005-04-05T04:11:23Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![rapski85](https://avatars.discourse-cdn.com/v4/letter/r/aeb1de/32.png) [@rapski85](https://forum.kirupa.com/u/rapski85)
#### Post date: [April 5, 2005, 4:11am UTC](https://forum.kirupa.com/t/close-command-for-pop-up/85486/1 "2005-04-05T04:11:23Z")

</div>

Hey guys,

i have a movie playing on a html page. It plays full-screen. I want to add an exit button that closes the movie from full screen.

I have tried the following code but it only seems to work on swf’s running outside the html page:  
on button,

```auto

 
on (release) {
	fscommand("quit");
}

```

can someone help please.

thanx
