Control movieclip content from another one
Hi everybody,
I am actually working on a CD interface in flash, in which I am trying to choose the best navigation method and working on it.
The menu movieclip containing the buttons is put on the stage, its instance is called "menu_btns".
1. The first method is to put my content movieclips directly on the stage and hide them using _visible property, then show the appropriate mc when a button is released.
I've written this in a frame on the stage:
stop();
_root.contentmc1._visible=false;
_root.contentmc2._visible=false;
and this on a frame inside the menu mc "menu_btns":
stop();
menu_btn_2.onRelease = function(){
_root.gotoAndPlay("content");
gotoAndStop(2);
_root.contentmc1._visible=true;
};
---
2. The second method is to put my content mclips inside another mc called "itemscontent" on different keyframes and to show each keyframe when clicked on a menu button.
I've written this in a frame on the stage, and on each frame of the mc "itemscontent":
stop();
and this on a frame inside the menu mc "menu_btns":
menu_btn_2.onRelease = function(){
_root.gotoAndPlay("content");
_root.itemscontent.gotoAndStop(2);
gotoAndStop(2);
};
-----------------------------
Both methods didn't work, I wonder if I did a mistake somewhere.
Thanks for help.
|