PHP 7.0.0 RC 8 Released


(PHP 5 <= 5.3.0, PECL ming SVN)

SWFButton::setActionSets the action


void SWFButton::setAction ( SWFAction $action )

This function is EXPERIMENTAL. The behaviour of this function, its name, and surrounding documentation may change without notice in a future release of PHP. This function should be used at your own risk.

Sets the action to be performed when the button is clicked.

This is a shortcut for SWFButton::addAction() called with the SWFBUTTON_MOUSEUP flag.



An SWFAction, returned by SWFAction::__construct().

Return Values

No value is returned.

See Also

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top