SWFButton : SWFCharacter
Roll over it, click it, see it call action code. Swank.
SWFButton SWFButton();
Create a new SWFButton object.
SWFBlock getBlock();
SWFBlock Block; (Propertie)
Get a SWFBlock object.
void addShape(SWFCharacter character, int flags);
Add the shape shape to this button. The following flags are valid:SWFBUTTON_UPSWFBUTTON_HIT isn't ever displayed, it defines the hit region for the button. That is, everywhere the hit shape would be drawn is considered a "touchable" part of the button.
SWFBUTTON_OVER
SWFBUTTON_DOWN
SWFBUTTON_HIT
void addAction(SWFAction action, int flags);
Add the action action to this button for the given conditions. The following flags are valid:SWFBUTTON_MOUSEOVERSee the example for specifics.
SWFBUTTON_MOUSEOUT
SWFBUTTON_MOUSEUP
SWFBUTTON_MOUSEUPOUTSIDE
SWFBUTTON_MOUSEDOWN
SWFBUTTON_DRAGOUT
SWFBUTTON_DRAGOVER
void setUp(SWFShape shape);
Alias for addShape(shape, SWFBUTTON_UP)
void setOver(SWFShape shape);
Alias for addShape(shape, SWFBUTTON_OVER)
void setDown(SWFShape shape);
Alias for addShape(shape, SWFBUTTON_DOWN)
void setHit(SWFShape shape);
Alias for addShape(shape, SWFBUTTON_HIT)
void setAction(SWFAction action);
Sets the action to be performed when the button is clicked. Alias for addAction(action, SWFBUTTON_MOUSEUP)