# Closing an embedded .swf?

**URL:** <https://forum.kirupa.com/t/closing-an-embedded-swf/119550>\
**Category:** Uncategorized\
**Created:** [August 16, 2004, 10:13am UTC](https://forum.kirupa.com/t/closing-an-embedded-swf/119550 "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/119550/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:** ![bwh2](https://avatars.discourse-cdn.com/v4/letter/b/8c91f0/32.png) [@bwh2](https://forum.kirupa.com/u/bwh2)\
**Post date:** [August 16, 2004, 11:14am UTC](https://forum.kirupa.com/t/closing-an-embedded-swf/119550/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:** ![Lucusade](https://avatars.discourse-cdn.com/v4/letter/l/5f8ce5/32.png) [@Lucusade](https://forum.kirupa.com/u/Lucusade)\
**Post date:** [August 16, 2004, 2:39pm UTC](https://forum.kirupa.com/t/closing-an-embedded-swf/119550/3 "2004-08-16T14:39:34Z")

</div>

cheers for that.

works a treat!
