Hi everyone !
I still canât figure out what is wrong.
For those who didnât read Dependent Menus I read the following (others jump to 2):
-
I have an external movie that has a menu. This movie is loaded inside the main movie inside a movieclip (letâs say menu_holder). This movie loads other external movies inside another movieclip inside the main movie (letâs call it content_holder). The menus (mcs) are dependent which means that all have an active and inactive states. When one is clicked the others are inactivated. Every menu loads a movie (in content_holder) and has a for (loop) function that inactivates the rest of the menus. Both functions interfere somehow.
-
The first time any of the buttons are clicked they load the corresponding movie properly (in content_holder) but not the second. And I canât figure out why. Here is the code in the menu buttons:
///////////////////////////////////////////////////////////////////////////////////////////////
on(press){
loadMovie(âportfolio/templates/2pics.swfâ, â_root.c_holderâ, âGETâ);
unloadMovie("_root.i_holder");
_global.picNum=9;
_global.path = âportfolio/interiors/01/â;
_global.pic1=1;
_global.pic2=2;
for(x=1; x<_global.menuIntNum; ++x){
allMenus=_parent[ânâ+x];
allMenus.gotoAndStop(âinactiveâ);
}
this.gotoAndStop(âactiveâ);
}
//////////////////////////////////////////////////////////////////////////////////////////////
SoâŚWhy in the world the for function is interfering with that loadMovie not loading the movie the second time the button is clicked but inactivating the other menus correctly???
////////////////////////////////////////////////////////////////////////////////////////////
NOTE: if I remove the for function from all the menus (so inactivation of menus is disabled) that doesnât happen, the movies are loaded over and over (in content_holder) just fine.
thank u!!!
PS: I can upload the movies if anyone needs to get more into it :P.