Home

Global Navigation Public Methods

setFade

setFade(fade:Boolean):void
  • Default is “false”.
  • If “false”, the children of a button are visible immediatly at rollOver (if setFadeInOnMouseOver is “true”) or release (when the button is clicked). No onMouseOver event is dispatched.
  • If “true”, the onMouseOver event is dispatched, where you have to handle the fading in of the children buttons by yourself.

setFadeInOnMouseOver

setFadeInOnMouseOver(fade:Boolean):void
  • Default is “true”. Note: If you use the xml attribute btnMakeRoomY, set this to “false”: setFadeInOnMouseOver(false). The combination is not (yet) working as expected!

getFadeInOnMouseOver

getFadeInOnMouseOver():Boolean

setFadeInDepth

setFadeInDepth(value:String)
  • “front” or “back”. Default is “front”.

setFadeOutTimerDelay

setFadeOutTimerDelay(delay:Number):void
  • Default is 2 seconds.
  • The time the children buttons renaim visible when the mouse has rolled out before they fade out again.

setFadeInChainDelay

setFadeInChainDelay(delay:Number):void
  • Defauklt is “0”.
  • The time the children of a button wait before the fade in when a deeplink is active. This is usefull if you have a longer animation for fading in buttons, to have a more sequential over all animation. See examples, select example Nr. 8 and click on “Deeplink-Demo” at the bottom.

setKeepRolloverStatus

setKeepRolloverStatus(value:Boolean)

getKeepRolloverStatus

getKeepRolloverStatus():Boolean

setAlwaysHideChildren

setAlwaysHideChildren(value:Boolean)
  • Default is “false”. NOTE: setAlwaysHideChildren depends on setFadeInOnMouseOver. If setFadeInOnMouseOver is “false”, setAlwaysHideChildren will also be “false”. It is only effective if setFadeInOnMouseOver is “true”.

getAlwaysHideChildren

getAlwaysHideChildren():Boolean

setBtnDepths

setBtnDepths(rollOutDepth:String, rollOverDepth:String, pressDepth:String, releaseDepth:String)
  • Values are “front” or “back”. Default is “front”, “front”, “front”, “front”

getBtnsByID

getBtnsByID(idArr:Array = null):Array
  • Returns an array of NavigationButtons
// Example:
var b:Array = navigationManager.getBtnsByID(["b0","b1_0","b1_1_0"]);
trace(b[0].btnSize)
trace(b[1].initX)
trace(b[2].makeRoomY)

getSiblings

getSiblings(btnID:String):Array
  • Returns an array of NavigationButtons of the same level

getParent

getParent(btnID:String):Object
  • Returns the parent button (NavigationButton) of a button by btnID

getChildren

getChildren(btnID:String):Array
  • Returns the children of a button (by btnID) as an array of NavigationButtons

activateBtn

activateBtn(btnID:String, dispatch:Boolean = true):void
  • Activates a button. If dispatch is “false”, only the button status will change, but no event will be dispatched. This is required for example when a deeplink is fired and the content is already loading, the button has to reflect the change but should not activate anything. Espacially in Gaia this is usefull, because there the button only reacts to the “goto” event.

getBranchForGaia

getBranchForGaia(btnID:String):String
  • Needed for Gaia projects. There are situations where you need the branches. See the documentation for more info.

activateBtnByPageID

activateBtnByPageID(pageID:String, dispatch:Boolean = false):NavigationButton
  • Needed for Gaia projects. There are situations where you need the pages. See the documentation for more info.

deactivateAll

deactivateAll():void
  • Deactivates all buttons

getBtnsContainer

getBtnsContainer():MovieClip
  • Get the container where all buttons are added into
global_navigation_public_methods.txt · Last modified: 2011/11/11 18:55 (external edit)
 
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki