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

This function is EXPERIMENTAL. The behaviour of this function, the name of this function, and anything else documented about this function may change without notice in a future release of PHP. Use this function at your own risk.

Adds an SWF object instance to the current movie.

매개변수

instance

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

반환값

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.