Forum und email

SWFMovie->add()

(PHP 4 >= 4.3.3)

SWFMovie->add() — Adds any type of data to a movie

說明

SWFMovie
mixed add ( object $instance )
Warning

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

Adds an SWF object instance to the current movie.

參數

instance

Any type of object instance, like SWFShape, SWFText, SWFFont.

Return值

For displayable types (shape, text, button, sprite), this returns an SWFDisplayItem, a handle to the object in a display list. Thus, you can add the same shape to a movie multiple times and get separate handles back for each separate instance.