# Problem with UnloadMovieNum

**URL:** <https://forum.kirupa.com/t/problem-with-unloadmovienum/64534>\
**Category:** flash\
**Created:** [September 17, 2004, 7:56am UTC](https://forum.kirupa.com/t/problem-with-unloadmovienum/64534 "2004-09-17T07:56:32Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![razielhans](https://avatars.discourse-cdn.com/v4/letter/r/ea666f/32.png) [@razielhans](https://forum.kirupa.com/u/razielhans)\
**Post date:** [September 17, 2004, 7:56am UTC](https://forum.kirupa.com/t/problem-with-unloadmovienum/64534/1 "2004-09-17T07:56:32Z")

</div>

Hello,

May I ask some help from you guys who know more about FLASH AS. My problem is that, I got 2 movieclips loaded to the main stage. clip1 at level 2 and clip2 at level 3.

I also placed a button with an AS that will unload the 2 clips when pressed. Everything worked well until after I have pressed my Unload button.

My movie starts playing and restarting and playing and restarting by itself. I have been to trying to figure it out but to my disappointment.

My script goes like this:

on (release) {  
unloadMovieNum (2);  
unloadMovieNum (3);  
\_parent.bluenavMC.gotoAndPlay(“normalize”);  
\_parent.pointerMC.gotoAndPlay(“close”);  
gotoAndPlay(“down”);  
}

I hope someone could help me with this problem.

---

<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:** [September 17, 2004, 7:59am UTC](https://forum.kirupa.com/t/problem-with-unloadmovienum/64534/2 "2004-09-17T07:59:54Z")

</div>

My main MOVIE plays a loop forever after I clicked on the button with my script unLoadMoveNum.

---

<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:** [September 17, 2004, 1:02pm UTC](https://forum.kirupa.com/t/problem-with-unloadmovienum/64534/3 "2004-09-17T13:02:49Z")

</div>

Hello,

Please download the files to see what I mean. I have 2 files, the MAIN DIRECTORY and the FLAs.

> **[Yahoo Small Business - Cheap Domains, Web Hosting, Website Builder, Ecommerce...](https://smallbusiness.yahoo.com/)**
>
> Yahoo Small Business Offers Cheap Domain Names, Web Hosting, Easy Website Builder, Business Email, Local Listings, and Ecommerce Solutions for Your Small Business.

  

> **[Yahoo Small Business - Cheap Domains, Web Hosting, Website Builder, Ecommerce...](https://smallbusiness.yahoo.com/)**
>
> Yahoo Small Business Offers Cheap Domain Names, Web Hosting, Easy Website Builder, Business Email, Local Listings, and Ecommerce Solutions for Your Small Business.

Thanks

---

<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:** [September 18, 2004, 9:56am UTC](https://forum.kirupa.com/t/problem-with-unloadmovienum/64534/4 "2004-09-18T09:56:44Z")

</div>

Hello, can anybody help me with this problem please? 🙂

---

<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:** [September 18, 2004, 2:10pm UTC](https://forum.kirupa.com/t/problem-with-unloadmovienum/64534/5 "2004-09-18T14:10:26Z")

</div>

Your site is very complicated. I’m trying to see where you told the bluenavmc to loadmovienum in level. Actually i don’t really know much about the loadmovienum command. I usually use loadmovieclip command. I can’t find where you put the actionscript for the bluenavmc to loadmovienum. can you point that out. I think that the back button is closing all the mc and loading it back in

---

<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:** [September 19, 2004, 11:43am UTC](https://forum.kirupa.com/t/problem-with-unloadmovienum/64534/6 "2004-09-19T11:43:05Z")

</div>

First of all, thanks for you reply, I really appreciated your time and effort.  
Im sorry for the late response.

on (release) {  
unloadMovieNum (2);  
unloadMovieNum (3);  
\_parent.bluenavMC.gotoAndPlay(“normalize”);  
\_parent.pointerMC.gotoAndPlay(“close”);  
gotoAndPlay(“down”);  
}

The script above is located on the “bluenavMC”. It’s in a folder in the library, there are INVISIBLE BUTTONS on it. It’s the only button which is active.

I have already done some debugging, I tried to commend the “unloadMovieNum” first but still, I get the same LOOP. Then I also commented the “gotoAndPlay” AS and still get the same result.

I really don’t know what script to use aside from the “unloadMovieNum”.

Thank You very much

---

<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:** [September 19, 2004, 12:51pm UTC](https://forum.kirupa.com/t/problem-with-unloadmovienum/64534/7 "2004-09-19T12:51:25Z")

</div>

ok I should say where did you put your loadmovienum AS. I can’t find that AS the one where you loaded to the tweo movie clips that is the one i’m looking for.

---

<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:** [September 20, 2004, 1:45am UTC](https://forum.kirupa.com/t/problem-with-unloadmovienum/64534/8 "2004-09-20T01:45:18Z")

</div>

Gupps,

Hi there, actually, there is no problem with the “loadMovieNum”, it’s being placed under the folder “movies” and named “bluenavMC” clip.

Actually, the problem starts when you click on the “back” button. It’s a movie clip too name “backMC” that is where the “unloadMovieNum” AS is placed and that is the one causing the problem. I have a print screen of my editing mode to show you where the MOVIE CLIP is.

---

<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:** [September 20, 2004, 12:34pm UTC](https://forum.kirupa.com/t/problem-with-unloadmovienum/64534/9 "2004-09-20T12:34:38Z")

</div>

yeah i know but don’t you have to put an AS to first load the 2 movie number or am I wrong. An AS say onRelease loadMovieNum.

---

<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:** [September 21, 2004, 6:00am UTC](https://forum.kirupa.com/t/problem-with-unloadmovienum/64534/10 "2004-09-21T06:00:58Z")

</div>

Gupps,

Okey, I understand what you mean. The AS that launches the 2 movies on level 2 & 3 are located at the movieclip “bluenavMC”. It’s inside the movies folder in the LIBRARY.

If you open the clip, you will see a button’s layer. In that layer, there are 4 invisible buttons. the first invisible button for “Product Showcase” has the AS.

on (release) {  
gotoAndPlay(“reduce”);  
\_parent.pointerMC.gotoAndPlay(“open”);  
\_parent.backMC.gotoAndPlay(“up”);  
loadMovie(“flash/product\_showcase.swf”, 2);  
}

then the “product\_showcase.swf” last frame loads another clip at level3 named “product\_showcase\_topnav.swf”

See attached image for the “bluenavMC”

---

<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:** [September 21, 2004, 6:04am UTC](https://forum.kirupa.com/t/problem-with-unloadmovienum/64534/11 "2004-09-21T06:04:36Z")

</div>

This is the second clip loaded at level 3 by the button at “bluenavMC”

---

<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:** [September 21, 2004, 12:26pm UTC](https://forum.kirupa.com/t/problem-with-unloadmovienum/64534/12 "2004-09-21T12:26:06Z")

</div>

This is way over my head. But did you try using this As on the back button instead  
on (press) {  
unloadMovie (“flash/product\_showcase.swf”, 2);  
unloadMovie (“flash/product\_showcase\_topnav.swf”,3);  
}

on (release) {  
\_parent.bluenavMC.gotoAndPlay(“normalize”);  
\_parent.pointerMC.gotoAndPlay(“close”);  
gotoAndPlay(“down”);

I’m just not familiar with (un)loadMovieNum.  
I hope this works and good luck

---

<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:** [September 22, 2004, 1:47am UTC](https://forum.kirupa.com/t/problem-with-unloadmovienum/64534/13 "2004-09-22T01:47:09Z")

</div>

Gupps,

Me too, I’ve been trying to isolate the problem. But it just keeps on coming back. Isn’t there any other script that would remove a current external clip loaded at a certain level?

Thanks for you time Gupps. I really appreciated your help.

---

<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:** [September 22, 2004, 2:13am UTC](https://forum.kirupa.com/t/problem-with-unloadmovienum/64534/14 "2004-09-22T02:13:35Z")

</div>

Help anyone 🙂

---

<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:** [September 23, 2004, 1:14am UTC](https://forum.kirupa.com/t/problem-with-unloadmovienum/64534/15 "2004-09-23T01:14:38Z")

</div>

> [@razielhans](#):
>
> Help anyone 🙂

I received your PM, but I’m not sure what the solution to your question may be. I guess the least I can do is bump this thread 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:** [September 23, 2004, 2:07am UTC](https://forum.kirupa.com/t/problem-with-unloadmovienum/64534/16 "2004-09-23T02:07:44Z")

</div>

kirupa,

Thank you so much. Well, if I can’t solve this problem, I’ll find a way around my sequence that wouldn’t involve any “unloadMovieNum” AS. My last resort. But I’m still very willing to have any ideas on why my simple script is doing wrong.

Thank you so much guys.

---

<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:** [September 24, 2004, 2:00am UTC](https://forum.kirupa.com/t/problem-with-unloadmovienum/64534/17 "2004-09-24T02:00:40Z")

</div>

bump
