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_UP
SWFBUTTON_OVER
SWFBUTTON_DOWN
SWFBUTTON_HIT
SWFBUTTON_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.


void addAction(SWFAction action, int flags);
Add the action action to this button for the given conditions. The following flags are valid:
SWFBUTTON_MOUSEOVER
SWFBUTTON_MOUSEOUT
SWFBUTTON_MOUSEUP
SWFBUTTON_MOUSEUPOUTSIDE
SWFBUTTON_MOUSEDOWN
SWFBUTTON_DRAGOUT
SWFBUTTON_DRAGOVER
See the example for specifics.


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)


back to index