# Small loadmovie problem

**URL:** <https://forum.kirupa.com/t/small-loadmovie-problem/29737>\
**Category:** Uncategorized\
**Created:** [August 30, 2003, 12:13am UTC](https://forum.kirupa.com/t/small-loadmovie-problem/29737 "2003-08-30T00:13:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![olympiakos7](https://avatars.discourse-cdn.com/v4/letter/o/278dde/32.png) [@olympiakos7](https://forum.kirupa.com/u/olympiakos7)\
**Post date:** [August 30, 2003, 12:13am UTC](https://forum.kirupa.com/t/small-loadmovie-problem/29737/1 "2003-08-30T00:13:01Z")

</div>

I’m working on a small portfolio project that showcases different work in areas such as web, logo design, print, ect

[my project](http://www.nikomedia.com/dev1/portfolio.html)

each section is a different MC and within the MC’s there are buttons that load movies into a container.

web2.onPress = function() {  
createEmptyMovieClip(“container”, 1);  
loadMovie(“web2.swf”, “container”);  
container.\_x = -120;  
container.\_y = -320;  
};  
web1.onPress = function() {  
createEmptyMovieClip(“container”, 1);  
loadMovie(“web1.swf”, “container”);  
container.\_x = -120;  
container.\_y = -320;  
};

when I press “web” then button 1, or 2 for example it loads the specified movie, and the old movie disapears.

However If i then click on a new MC like logo and then example 9 it loads the movie on top of it without dissapearing.

I’d like to be able to press the numbers of any section and have whatever movie is on the stage disapear.

Is this possible?

---

<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 30, 2003, 1:48am UTC](https://forum.kirupa.com/t/small-loadmovie-problem/29737/2 "2003-08-30T01:48:38Z")

</div>

[AS]  
web1.onPress = function() {  
conunloadMovie("\_root.container");  
loadMovie(“web1.swf”, “container”);  
container.\_x = -120;  
container.\_y = -320;  
};  
[/AS]

---

<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 30, 2003, 2:35am UTC](https://forum.kirupa.com/t/small-loadmovie-problem/29737/3 "2003-08-30T02:35:46Z")

</div>

Thanks for the reply, but it doesn’t seem to work, the movies within “web” unload when I press the button, but like before they stay on the stage when i click one of the buttons in “logo”

I’m probably missing a step somewhere, but i’ve double checked the actionscript and everything seems fine.

---

<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 30, 2003, 2:51am UTC](https://forum.kirupa.com/t/small-loadmovie-problem/29737/4 "2003-08-30T02:51:52Z")

</div>

i think this has been asked before. try searching the forums under soemthing like “checking for data” or “checking data on stage” something along those lines should turn something up.

---

<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 30, 2003, 4:35am UTC](https://forum.kirupa.com/t/small-loadmovie-problem/29737/5 "2003-08-30T04:35:04Z")

</div>

well when i did something like this I made one movie clip ahead of time and loaded all my movies into it instead of creating empty clips each time. That way they unload automatically
