SWFButton::setAction

(PHP 5 < 5.3.0, PECL ming SVN)

SWFButton::setActionSets the action

说明

SWFButton::setAction ( SWFAction $action ) : void
Warning

此函数是实验性的。此函数的表象,包括名称及其相关文档都可能在未来的 PHP 发布版本中未通知就被修改。使用本函数风险自担 。

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

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

参数

action

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

返回值

没有返回值。

参见