Question
variables holding old values
I've got a project where there are main menus, sub menus and
sub-sub menus. I have 3 classes. 1) ContentController, 2)
MainNavigation controller and 3) SubNavigation controller.
Main links to Content and SubNavigation.
SubNavigation links to Content.
When you click a main button, the content changes, the sub links come out. Click a sub link, it's sub-sub menu expands. Click a main and the sub-sub and sub roll up and switch to the new main button section.
when I click a new sub button that comes out, the sub-sub navigation of the previous sections "out" button becomes visible and rolls up.
It's a variable that is holding the info.
I can clear the variable several times in multiple places along the path of the code, and when I trace it, the old variable still shows up. From nowhere.
My trace statements look like this:
main buttons are rolling up
subBtnIsOut == false
subBtnOutName == "";
Click event recieved on sub button
test if subBtnIsOut and what subBtnOutName is:
subBtnIsOut==true;
subBtnOutName==btn_strategy
Anyone know why?
Could it be that the main button class is creating an instance of the SubNavigation class and the main movie is creating an instance of the SubNavigation class?
And there are really 2 instances of the class out there?
HELP! The client says it has to be done in 2 hours. 😞
Main links to Content and SubNavigation.
SubNavigation links to Content.
When you click a main button, the content changes, the sub links come out. Click a sub link, it's sub-sub menu expands. Click a main and the sub-sub and sub roll up and switch to the new main button section.
when I click a new sub button that comes out, the sub-sub navigation of the previous sections "out" button becomes visible and rolls up.
It's a variable that is holding the info.
I can clear the variable several times in multiple places along the path of the code, and when I trace it, the old variable still shows up. From nowhere.
My trace statements look like this:
main buttons are rolling up
subBtnIsOut == false
subBtnOutName == "";
Click event recieved on sub button
test if subBtnIsOut and what subBtnOutName is:
subBtnIsOut==true;
subBtnOutName==btn_strategy
Anyone know why?
Could it be that the main button class is creating an instance of the SubNavigation class and the main movie is creating an instance of the SubNavigation class?
And there are really 2 instances of the class out there?
HELP! The client says it has to be done in 2 hours. 😞