Attitude Navigation Bar
Simple Navigation Bar to use with your projects.
import the class using:
declare the navigation as a class instance and add child to scene using:
myNav = new AttNav(
--xml file adress---);addChild(myNav);
other parameters that can be changed via xml are: mousePos = mouse position the approximity of the mouse to the top of the stage, that excutes the navigation to slide
addHeight = additional heigh, how many pixels the navbar will be located from the top of the screen on it's initial position
butspace = the space between the buttons
all the xml attributes and data is retrieved from the xml file so this data can be used via the ID parameter for every navigation element.
to add your custom functions to the buttons modify the trigBut function located on the 67 th line of the AttNav class file.
the graphics files can be modified from the library.
check out my other items:
View Complete Portfolio
have mad go fun…