Forum und email

SWFButton->addShape()

(PHP 4 >= 4.0.5)

SWFButton->addShape() — Adds a shape to a button

說明

SWFButton
void addShape ( SWFShape $shape , int $flags )
Warning

本函式是實驗性的。這個函式的行為、名稱、和關於此函式的任何其他文件在未來PHP的發行中可能會在不通知的情況下改變。 使用此函式需自行承擔風險。

Adds the given shape to the button.

參數

shape

An SWFShape instance

flags

The following flags are valid: SWFBUTTON_UP, SWFBUTTON_OVER, SWFBUTTON_DOWN and 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.

Return值

無回傳值。