Home > PHP > Function > > SWFMovie->add()

SWFMovie->add()

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

Syntax

mixed SWFMovie->add (object $instance)

Arguments

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

Description

Adds an SWF object instance to the current movie.

Version

PHP 4.3.3

Return value

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.