silver charm
07-15-2004, 12:07 AM
I have tried the 'invisible button' method to get my menus to collapse (horizontal nav bar with vertical subs) but the prob -as far as i can see- is the buttons are too close together to get the proper acreage on the invisible button.
i have a text field that populates from the menus which are loaded via AS (not plopped on the stage).
the depths of everything:
-textfield=20
-containter mc_1=50
--menu mc_1=51
-container mc_2=60
--menu mc_2=61
-container mc_3=70
--menu mc_3=71
i know there are multiple ways to skin a cat-so here are the two methods i think can solve this. but i can't figure out either. :confused:
A) get my text field to go down in depth (but stay visible) with the buttons plopped on the stage. which i really don't think will fix the sticky menu problem
B) get the following code to work
//menu1_mc
this.menu1_mc.onRollOver = function() {
if(menu2 == 1){
menu2_mc.gotoAndPlay("collapsed");
trace ("menu2 collapse on menu1")
menu2 = 0;
}
if(menu3 == 1) {
menu3_mc.gotoAndPlay("collapsed");
trace ("menu3 collapse on menu1")
menu3 = 0;
}
if(menu1 == 0) {
menu1_mc.gotoAndPlay("expanded");
trace ("menu1 expand on menu1")
menu1 = 1;
}
};
any good ideas?????
i have a text field that populates from the menus which are loaded via AS (not plopped on the stage).
the depths of everything:
-textfield=20
-containter mc_1=50
--menu mc_1=51
-container mc_2=60
--menu mc_2=61
-container mc_3=70
--menu mc_3=71
i know there are multiple ways to skin a cat-so here are the two methods i think can solve this. but i can't figure out either. :confused:
A) get my text field to go down in depth (but stay visible) with the buttons plopped on the stage. which i really don't think will fix the sticky menu problem
B) get the following code to work
//menu1_mc
this.menu1_mc.onRollOver = function() {
if(menu2 == 1){
menu2_mc.gotoAndPlay("collapsed");
trace ("menu2 collapse on menu1")
menu2 = 0;
}
if(menu3 == 1) {
menu3_mc.gotoAndPlay("collapsed");
trace ("menu3 collapse on menu1")
menu3 = 0;
}
if(menu1 == 0) {
menu1_mc.gotoAndPlay("expanded");
trace ("menu1 expand on menu1")
menu1 = 1;
}
};
any good ideas?????