MultiButton.theme

Availability

Flash Player 7.

Usage

MultiButton.theme=String;
OR
var myVariable:String=MultiButton.theme;

Parameters

Returns

String

Description

specifies what type of button background to draw this can be any one of the following:SOLID,GEL,GLOSS,MARBLE,SHINE,GRADIENT if you specify something else the button will attempt to call a function by that name and pass it the following arguments (button,color,width,height button is a reference to the button, color specifies which color sould currently be used for the theme

Example

myButton.theme=myCustomTheme;
function myCustomTheme(button,curcolor,w,h)
{
//use button._BG and/or button._FRAME for the useable canvas to either attach a clip or use actionscript drawing commands
//this will do a basic solid theme
button._BG.clear();
button._BG.beginFill(Number(curcolor),100);
button._BG.lineStyle( button.borderSize,0xCCCCCC,0);
button.drawLeftSide(button._BG);
button.drawTopSide(button._BG);
button._BG.lineStyle( button.borderSize,0x333333,0);
button.drawRightSide(button._BG);
button.drawBottomSide(button._BG);
button._BG.endFill();
}

Author

Telsim, Inc.