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

onMouseOut
onMouseOver


PROPERTIES

 

align

Availability
Flash Player 9

Usage
BounceMenu.align

Description
Property. This property sets the text alignment.

Example

myBounceMenu.align = "Left";

 

current

Availability
Flash Player 9

Usage
BounceMenu.current

Description
Property. This property sets the item padding.

Example

myBounceMenu.current = 5;

 

easingEffect

Availability
Flash Player 9

Usage
BounceMenu.easingEffect

Description
Property. Sets the easing type.

Example

myBounceMenu.easingEffect = "easingUp";

 

easingSpeed

Availability
Flash Player 9

Usage
BounceMenu.easingSpeed

Description
Property. Sets the speed of easing.

Example

myBounceMenu.- = -;

 

fontColor

Availability
Flash Player 9

Usage
BounceMenu.fontColor

Description
Property. Sets the font color.

Example

myBounceMenu.fontColor = 0x001122;

 

fontSize

Availability
Flash Player 9

Usage
BounceMenu.fontSize

Description
Property. Sets the font size of the label text.

Example

myBounceMenu.fontSize = 12;

 

Funct

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";

 

menuType

Availability
Flash Player 9

Usage
BounceMenu.menuType

Description
Property. Sets the menu mode.

Example

myBounceMenu.menuType = "Vertical";

 

pointerMode

Availability
Flash Player 9

Usage
BounceMenu.pointerMode

Description
Property. Sets the pointer mode.

Example

myBounceMenu.pointerMode = "RollOver";

 

pointerName

Availability
Flash Player 9

Usage
BounceMenu.pointerName

Description
Property. Sets the pointer clip.

Example

myBounceMenu.pointerName = "myPointerClip";

 

roColor

Availability
Flash Player 9

Usage
BounceMenu.roColor

Description
Property. The rollover color of the label text.

Example

myBounceMenu.roColor = 0xff0000;

 

selectedColor

Availability
Flash Player 9

Usage
BounceMenu.selectedColor

Description
Property. Sets the color of the label text when selected.

Example

myBounceMenu.selectedColor = 0x00ff00;

 

sizeRO

Availability
Flash Player 9

Usage
BounceMenu.sizeRO

Description
Property. The size to scale the item to on roll over.

Example

myBounceMenu.sizeRO = 100;

 

staticAr

Availability
Flash Player 9

Usage
BounceMenu.staticAr

Description
Property. Sets the items to be used in the menu

Example

myBounceMenu.staticAr = ["one", "two", "three"];

 

staticURLs

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"];

 

stretchPointer

Availability
Flash Player 9

Usage
BounceMenu.stretchPointer

Description
Property. Determines whether to stretch the pointer clip (true) or not (false).

Example

myBounceMenu.stretchPointer = true;

 

textEffect

Availability
Flash Player 9

Usage
BounceMenu.textEffect

Description
Property. Sets the text effect mode.

Example

myBounceMenu.textEffect = "scale";


METHODS

 

addItem

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");

 

addItemCustom

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);

 

clearMenu

Availability
Flash Player 9

Usage
BounceMenu.clearMenu

Description
Method. Removes all items from the component.

Example

myBounceMenu.clearMenu();

 

setCallback

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");

 

setSelected

Availability
Flash Player 9

Usage
BounceMenu.setSelected(index)

Parameters
index: Number

Description
Method. Sets the initially selected item.

Example

myBounceMenu.setSelected(2);

 

setURLTgt

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");


EVENTS

 

onMouseOut

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);
}

 

onMouseOver

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);
}