I am currently working on a sub menu system. When a main menu button is pressed it changes the _alpha from 0 to 100 for the relevant submenu. All of the submenus are piled ontop of each other and as a result the ones ontop block the rollover effect of the buttons further down the pile. To remedy this I have been attempting to implement a method whereby when the menu button is pressed it not only changes the _alpha to 100% but also places the submenu MC at the front. I can’t however seem to get this to work.
Here is an extract of the AS:
function demo()
{
this.scroller2_mc.contentMain.vone_btn._alpha = 100;
this.scroller2_mc.contentMain.vone_btn.swapDepths(_root.getNextHighestDepth());
}
This can be found on lines 34-38 of the .FLA file: www.bambambam.co.uk/testing/index.fla
You can recreate the problem by clicking on ‘clients’; the upper buttons dont work, but the lower ones do.
I would appreciate any help whatsoever with this.
Thanks,
-ollie
[edit] fixed link[/edit]