ActionScript 3 Reference
align
current
easingEffect
easingSpeed
fontColor
fontSize
Funct
menuType
pointerMode
pointerName
roColor
selectedColor
sizeRO
staticAr
staticURLs
stretchPointer
textEffect
addItem
addItemCustom
clearMenu
setCallback
setSelected
setURLTgt
Availability
Flash Player 9
Usage
BounceMenu.align
Description
Property. This property sets the text alignment.
Example
myBounceMenu.align = "Left";
Availability
Flash Player 9
Usage
BounceMenu.current
Description
Property. This property sets the item padding.
Example
myBounceMenu.current = 5;
Availability
Flash Player 9
Usage
BounceMenu.easingEffect
Description
Property. Sets the easing type.
Example
myBounceMenu.easingEffect = "easingUp";
Availability
Flash Player 9
Usage
BounceMenu.easingSpeed
Description
Property. Sets the speed of easing.
Example
myBounceMenu.- = -;
Availability
Flash Player 9
Usage
BounceMenu.fontColor
Description
Property. Sets the font color.
Example
myBounceMenu.fontColor = 0x001122;
Availability
Flash Player 9
Usage
BounceMenu.fontSize
Description
Property. Sets the font size of the label text.
Example
myBounceMenu.fontSize = 12;
Availability
Flash Player 9
Usage
BounceMenu.Funct
Description
Property. This property sets the function to be called when an item is clicked.
Example
myBounceMenu.Funct = "myClickFunction";
Availability
Flash Player 9
Usage
BounceMenu.menuType
Description
Property. Sets the menu mode.
Example
myBounceMenu.menuType = "Vertical";
Availability
Flash Player 9
Usage
BounceMenu.pointerMode
Description
Property. Sets the pointer mode.
Example
myBounceMenu.pointerMode = "RollOver";
Availability
Flash Player 9
Usage
BounceMenu.pointerName
Description
Property. Sets the pointer clip.
Example
myBounceMenu.pointerName = "myPointerClip";
Availability
Flash Player 9
Usage
BounceMenu.roColor
Description
Property. The rollover color of the label text.
Example
myBounceMenu.roColor = 0xff0000;
Availability
Flash Player 9
Usage
BounceMenu.selectedColor
Description
Property. Sets the color of the label text when selected.
Example
myBounceMenu.selectedColor = 0x00ff00;
Availability
Flash Player 9
Usage
BounceMenu.sizeRO
Description
Property. The size to scale the item to on roll over.
Example
myBounceMenu.sizeRO = 100;
Availability
Flash Player 9
Usage
BounceMenu.staticAr
Description
Property. Sets the items to be used in the menu
Example
myBounceMenu.staticAr = ["one", "two", "three"];
Availability
Flash Player 9
Usage
BounceMenu.staticURLs
Description
Property. Sets the URLs to navigate to when the corresponding item is clicked.
Example
myBounceMenu.staticURLs = ["www.flashloaded.com", "www.fontsforflash.com", "www.flashloaded.com"];
Availability
Flash Player 9
Usage
BounceMenu.stretchPointer
Description
Property. Determines whether to stretch the pointer clip (true) or not (false).
Example
myBounceMenu.stretchPointer = true;
Availability
Flash Player 9
Usage
BounceMenu.textEffect
Description
Property. Sets the text effect mode.
Example
myBounceMenu.textEffect = "scale";
Availability
Flash Player 9
Usage
BounceMenu.addItem(title, URL)
Parameters
title:String
URL:String
Description
Method. Adds an item to the component.
Example
myBounceMenu.addItem("flashloaded", "http://www.flashloaded.com");
Availability
Flash Player 9
Usage
BounceMenu.addItemCustom(title, URL, size, fontColor, fontROColor, fontSColor)
Parameters
title:String
URL:String
size:Number
fontColor:Number
fontROColor
fontSColor
Description
Method. Adds a customized item to the component.
Example
myBounceMenu.addItemCustom("flashloaded", "http://www.flashloaded.com", 12, 0x000000, 0xff0000, 0x00ff00);
Availability
Flash Player 9
Usage
BounceMenu.clearMenu
Description
Method. Removes all items from the component.
Example
myBounceMenu.clearMenu();
Availability
Flash Player 9
Usage
BounceMenu.setCallback(func)
Parameters
func:String
Description
Method. The function to be called when an item is clicked.
Example
myBounceMenu.setCallback("myCallbackFunction");
Availability
Flash Player 9
Usage
BounceMenu.setSelected(index)
Parameters
index: Number
Description
Method. Sets the initially selected item.
Example
myBounceMenu.setSelected(2);
Availability
Flash Player 9
Usage
BounceMenu.setURLTgt(index, target)
Parameters
index:Number
target:String
Description
Method. Sets the target window for the specified link.
Example
myBounceMenu.setURLTgt(2, "_blank");
Availability
Flash Player 9
Usage
BounceMenu.onMouseOut = function()
Parameters
index:Number
Description
Function. Called each time the cursor rolls off an item.
Example
myBounceMenu.onMouseOut = function (index)
{
trace("Rolled out of " + index);
}
Availability
Flash Player 9
Usage
BounceMenu.onMouseOver = function()
Parameters
index:Number
Description
Function. Called each time the cursor rolls over an item.
Example
myBounceMenu.onMouseOver = function (index)
{
trace("Rolled over " + index);
}