Problem with UnloadMovieNum

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.

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

Hello,

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


Thanks

Hello, can anybody help me with this problem please? :slight_smile:

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

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

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.

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.

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.

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”

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

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

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.

Help anyone :slight_smile:

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.

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.

bump