MultiButton.shapeleft

Availability

Flash Player 7.

Usage

MultiButton.shapeleft=Anything;
OR
var myVariable=MultiButton.shapeleft;

Parameters

Returns

Nothing

Description

specifies how to draw the left side of the button this can be any one of the following:LINE,CORNERCURVE,CURVELEFT,CURVERIGHT,SLANTLEFT,SLANTRIGHT you may also set the to a function, when doing so the button will call your function when it needs to draw the left or bottom shape of the button. The function will be passed the following ("b",dclip,xMin,yMin,xMax,yMax); "b" or "l" for bottom or left, When passed the "l" side the first call must be a dclip.moveTo(), dclip a reference to the canvas, xMin,xMax,yMin,yMax current dimmensions of the button.

Example

Here is an example using this parameter with a call back assuming you have a multibutton on the stage
with an instance name of myButton.
myButton.shapeleft=DrawSide;
stop();
function DrawSide(side,clip,xmin,ymin,xmax,ymax)
{
var w=xmax-xmin;
var h=ymax-ymin;
switch(side)
{
case "l":
clip.moveTo(xmin-(w*.28),ymax);
clip.curveTo(xmin-(w*.30),ymax-(h*.18),xmin-(w*.28),ymax-(h*.34));
clip.curveTo(xmin-(w*.25),ymax-(h*.35),xmin-(w*.07),ymin+(h*.25));
clip.curveTo(xmin-(w*.05),ymin+(h*.15),xmin+(w*.05),ymin);
break;
case "b":
clip.lineTo(xmin,ymax);
break;
}
}

Author

Telsim, Inc.