# Beginers question

**URL:** <https://forum.kirupa.com/t/beginers-question/15634>\
**Category:** Uncategorized\
**Created:** [March 16, 2003, 12:56pm UTC](https://forum.kirupa.com/t/beginers-question/15634 "2003-03-16T12:56:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![OonuclearoO](https://avatars.discourse-cdn.com/v4/letter/o/8baadc/32.png) [@OonuclearoO](https://forum.kirupa.com/u/OonuclearoO)\
**Post date:** [March 16, 2003, 12:56pm UTC](https://forum.kirupa.com/t/beginers-question/15634/1 "2003-03-16T12:56:04Z")

</div>

i’ve created a button to load an external swf onto an empty movie clip when pressed  
on (press) {  
loadMovie (“movie.swf”, “emptymc”);  
}

I also want to unload that swf with that same button when pressed again… I know how to load it…i just cant figure out the unload part. I hope someone can help me whit this. Thank you

I.M.

---

<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:** [March 16, 2003, 1:10pm UTC](https://forum.kirupa.com/t/beginers-question/15634/2 "2003-03-16T13:10:11Z")

</div>

```auto
on (release) {
	if (!movieloaded) {
		movieclip.loadMovie("movie.swf");
		movieloaded = true;
	} else {
		movieclip.unloadMovie();
		movieloaded = false;
	}
}

```

??

---

<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:** [March 16, 2003, 7:17pm UTC](https://forum.kirupa.com/t/beginers-question/15634/3 "2003-03-16T19:17:15Z")

</div>

thank you for your help, it work great:)

---

<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:** [March 17, 2003, 8:21am UTC](https://forum.kirupa.com/t/beginers-question/15634/4 "2003-03-17T08:21:02Z")

</div>

no problem 😉

and …  
**welcome to kirupaville OonuclearoO !! =)**
