Global Navigation version 1.57 released
June 22, 2009 by: ChristianIn this update I focussed on submenues appearing when you roll over a button. Now the parent button keeps its state, and you can decide if the submenues disappear again if there is a button active in it. And there are 2 methods that were here from the beginning, but I have forgotten to document them… uargh, shame on me…
The new methods are:
keep the roll over state of the parent button:
setKeepRolloverStatus(true)
Hide the children again, regardless of their button state. Either after a time specified by setFadeOutTimerDelay(3) or if the user clicks anywhere off the navigation:
setAlwaysHideChildren(true)
And the undocumented methods are used for depth handling:
Sets the submenu that is fading in behind the parent button. In the SWF below I have used a shadow on the parent button to demonstrate it
setFadeInDepth(“back”)
You can even set the depth of each button state (rollOver, rollOut, Press, release):
setBtnDepths(“back”,”front”,”front”,”front”)
.
Explore and compare these two SWFs. At first glance they look the same. But there is a difference.
Settings in the SWF above:
navigationManager.setKeepRolloverStatus(true);
navigationManager.setAlwaysHideChildren(true);
navigationManager.setBtnDepths(“back”,”front”,”front”,”front”)
navigationManager.setFadeInDepth(“back”)
.
Settings in the SWF above:
navigationManager.setKeepRolloverStatus(false);
navigationManager.setAlwaysHideChildren(false);
navigationManager.setBtnDepths(“front“,”back“,”back“,”front”)
navigationManager.setFadeInDepth(“front“);
Download source, demo files and documentation
.





