# How to close 2 swf using unloadMovie function?

**URL:** <https://forum.kirupa.com/t/how-to-close-2-swf-using-unloadmovie-function/331954>\
**Category:** flash\
**Created:** [December 6, 2013, 9:20am UTC](https://forum.kirupa.com/t/how-to-close-2-swf-using-unloadmovie-function/331954 "2013-12-06T09:20:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bracelett](https://avatars.discourse-cdn.com/v4/letter/b/ac8455/32.png) [@bracelett](https://forum.kirupa.com/u/bracelett)\
**Post date:** [December 6, 2013, 9:20am UTC](https://forum.kirupa.com/t/how-to-close-2-swf-using-unloadmovie-function/331954/1 "2013-12-06T09:20:48Z")

</div>

So far I’m woking for 3 swf’s, one is the holder which load the swf’s, I named  
table.swf, box.swf and fruit.swf  
table.swf is my holder and has a button of this code:

```auto
on(release){
	loadMovie("box.swf",2);
}

```

to load the box.swf, then the box.swf has its own button also to appear the fruits inside the box with this code:

```auto
on(release){
	loadMovie("fruits.swf",3);
}

```

also I put the closed button to box.swf with this code

```auto
on(release){
   unloadMovie(2 && 3);
}

```

But it didn’t work when i press the “X” button of box.swf, the box and the fruits did’nt close.  
any help would be great!
