# Unload movie (simple close button)

**URL:** <https://forum.kirupa.com/t/unload-movie-simple-close-button/124464>\
**Category:** Uncategorized\
**Created:** [October 4, 2004, 1:20am UTC](https://forum.kirupa.com/t/unload-movie-simple-close-button/124464 "2004-10-04T01:20:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![magic\_dot](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/magic_dot/32/791_2.png) [@magic\_dot](https://forum.kirupa.com/u/magic_dot)\
**Post date:** [October 4, 2004, 1:20am UTC](https://forum.kirupa.com/t/unload-movie-simple-close-button/124464/1 "2004-10-04T01:20:56Z")

</div>

Working on my first effort of a Flash based site…

I’ve brought up a popup scroller with the script:

on (release) {  
\_root.createEmptyMovieClip(“container”, 2);  
loadMovie(“popup\_scroller.swf”, “container”);  
container.\_x =19 ;  
container.\_y =15 ;  
}

To load the SWF popup\_scroller.swf into level 2 where I want it.

I then added a CLOSE button to popup\_scroller.swf such:

on (release) {  
container.unloadMovie(2);  
}

with the intention that this would empty ‘container’ of the popupscroller.swf

It doesn’t work - am I close or wildly off the mark?

My FLA file is at [www.magicdot.co.uk/popup\_scroller.fla](http://www.magicdot.co.uk/popup_scroller.fla)

PS - any ideas on why KIRUPA’s tutorial on dynamically loaded text boxes, leaves a couple of blank lines at the top of the text area? (see my message bellow) [http://www.kirupaforum.com/forums/showthread.php?t=71864](http://www.kirupaforum.com/forums/showthread.php?t=71864)

Regards,

Magicdot
