# Closing an embedded .swf?

**URL:** <https://forum.kirupa.com/t/closing-an-embedded-swf/61126>\
**Category:** flash\
**Created:** [August 16, 2004, 10:13am UTC](https://forum.kirupa.com/t/closing-an-embedded-swf/61126 "2004-08-16T10:13:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lucusade](https://avatars.discourse-cdn.com/v4/letter/l/5f8ce5/32.png) [@Lucusade](https://forum.kirupa.com/u/Lucusade)\
**Post date:** [August 16, 2004, 10:13am UTC](https://forum.kirupa.com/t/closing-an-embedded-swf/61126/1 "2004-08-16T10:13:46Z")

</div>

Hi all,

Im trying to create an advert that opens over my .asp page, and i want to have a close button within the flash file so that it closes the movie, but not the webpage.

Any ideas would be much appriciated.

Cheers

Luke

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 16, 2004, 11:14am UTC](https://forum.kirupa.com/t/closing-an-embedded-swf/61126/2 "2004-08-16T11:14:36Z")

</div>

just make for instance your frame one the closed frame. then put [AS]on(release){  
mc.gotoAndStop(1);  
}[/AS]as for putting the flash over things, [simplistik’s put together a nice little file](http://www.kirupaforum.com/forums/showthread.php?t=65910&highlight=transparent+flash).

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 16, 2004, 2:39pm UTC](https://forum.kirupa.com/t/closing-an-embedded-swf/61126/3 "2004-08-16T14:39:34Z")

</div>

cheers for that.

works a treat!
