Flash Player 7.
MultiButton.shaperight=Anything;
OR
var myVariable=MultiButton.shaperight;
Nothing
specifies how to draw the right 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); "r" or "t" for right or top, dclip a reference to the canvas, xMin,xMax,yMin,yMax current dimmensions of the button.
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.shaperight=DrawSide;
stop();
function DrawSide(side,clip,xmin,ymin,xmax,ymax)
{
var w=xmax-xmin;
var h=ymax-ymin;
switch(side)
{
case "r":
clip.curveTo(xmax+(w*.30),ymax-(h*.18),xmax+(w*.28),ymax-(h*.34));
clip.curveTo(xmax+(w*.30),ymax-(h*.09),xmax+(w*.28),ymax);
break;
case "t":
clip.lineTo(xmax,ymin);
break;
}
}
Author