ActionScript Reference
borderColor
borderWidth
buffer
buttonSpace
buttonHeight
buttonSkin
buttonWidth
currentFont
currentFontColor
currentFontSize
currentFontStyle
clickedColor
clickedMark
disableCurrent
effect
effectSpeed
embeddedFonts
initialButton
menuAlignmentX
menuAlignmentY
menuDirection
overFont
overFontSize
overFontColor
overFontStyle
textVertical
textHorizontal
totalSize
useHandCursor
upFont
upFontSize
upFontColor
upFontStyle
xmlFilename
zoomPercent
init
loadMenuArrays
getCurrentMenuID
getCurrentMenuName
getCurrentOutID
getCurrentOutName
getCurrentOverID
getCurrentOverName
xmlLoaded
onMenuPress
onMenuRelease
onMenuRollOut
onMenuRollOver
Sets the path and name of the XML file
myMenu.xmlFilename = "menu.xml";
myMenu.init();
Sets the initially selected menu button
myMenu.initialButton = 0;
myMenu.init();
Sets the direction of the menu
myMenu.menuDirection = "horizontal";
myMenu.init();
Options:
horizontal
vertical-right
vertical-left
vertical-center
Sets the horizontal alignment of the menu
myMenu.menuAllignmentX = "center";
Options:
right
left
center
Sets the vertical alignment of the menu
myMenu.menuAllignmentY = "center";
Options:
right
left
center
Sets the total size of the menu
myMenu.totalSize = 450;
myMenu.init();
Sets the spacing between menu buttons
myMenu.buttonSpace = 15;
myMenu.init();
Sets the linkage name of the button skin to use with this instance of the menu
myMenu.buttonSkin = "transparentButton";
myMenu.init();
buttonWidth
Sets the fixed width of the menu buttons
myMenu.buttonWidth = 100;
myMenu.init();
Set the fixed height of the menu buttons
myMenu.buttonHeight = 30;
myMenu.init();
Sets buffer spacing around left and right of menu text
myMenu.buffer = 10;
myMenu.init();
Sets vertical alignment of menu text
myMenu.textVertical = "top";
myMenu.init();
Options:
top
middle
bottom
Sets horizontal alignment of menu text when using vertical-left or vertical-right direction
myMenu.textHorizontal = "left";
myMenu.init();
Options:
left
right
center
Sets the effect to use
myMenu.effect = "border";
Options:
none
fadeIn
border
zoom
zoom-ease
bounce-low
bounce-med
bounce-high
zoom-bounce-low
zoom-bounce-med
zoom-bounce-high
typewriter
effectSpeed
Sets the speed of the effect
myMenu.effectSpeed = 20;
Sets the border color for the border effect
myMenu.borderColor = 0xFF0000;
Sets the width of the border lines for the border effect
myMenu.borderWidth = 3;
Sets the zoom percentage for the zoom and bounce effects
myMenu.zoomPercent = 150;
Boolean value defines whether to display hand cursor or not
myMenu.useHandCursor = false;
Boolean value defines whether current menu button is disabled or not
myMenu.disableCurrent = false;
Boolean value defines whether to use embedded fonts or not
myMenu.embeddedFonts = true;
Sets the main(up) font for the menu buttons
myMenu.upFont ="Arial";
Sets the main(up) font size for the menu buttons
myMenu.upFontSize="12";
Sets the main(up) text color for the menu buttons
myMenu.upFontColor = 0x000000;
Sets the main(up) text color for the menu buttons
myMenu.upFontStyle = "bold";
Options:
normal
bold
italic
underline
bold-italic
italic-underline
bold-underline
bold-italic-underline
Sets the over font for the menu buttons
myMenu.overFont ="Arial";
Sets the over font size for the menu buttons
myMenu.overFontSize="12";
Sets the over text color for the menu buttons
myMenu.overFontColor = 0x000000;
Sets the over font style for the menu buttons
myMenu.overFontStyle = "bold";
Options:
normal
bold
italic
underline
bold-italic
italic-underline
bold-underline
bold-italic-underline
Sets the current font for the menu buttons
myMenu.currentFont ="Arial";
Sets the current font size for the menu buttons
myMenu.currentFontSize="12";
Sets the current text color for the menu buttons
myMenu.currentFontColor = 0x000000;
Sets the current font style for the menu buttons
myMenu.currentFontStyle = "bold";
Options:
normal
bold
italic
underline
bold-italic
italic-underline
bold-underline
bold-italic-underline
Sets the current font style for the menu buttons
myMenu.clickedMark = true;
Color of clicked menu items (if clickedMark is set to true)
myMenu.clickedFontColor = 0xCCCCCC;
Loads button and link arrays into the menu
myMenu.loadMenuArrays(buttonArray, linkArray);
Reinitializes the menu with new data or settings
myMenu.init();
Returns the ID of the current menu button
var id = myMenu.getCurrentMenuID();
Returns the name of the current menu button
var name = myMenu.getCurrentMenuName();
Returns the ID of the current rollover menu button
var id = myMenu.getCurrentOverID();
Returns the name of the current rollover menu button
var name = myMenu.getCurrentOverName();
Returns the ID of the menu button on which the rollout last occurred var id = myMenu.getCurrentOutID(); Returns the name of the menu button on which the rollout last occurred var name = myMenu.getCurrentOutName(); Returns the loaded status of the XML file myMenu.xmlLoaded; Event called a menu button is released Event called when a menu button is pressed Event called on rollover of any menu button Event called on rollout of any menu button