Home > PHP > Function > > SWFDisplayItem->setDepth()

SWFDisplayItem->setDepth()

SWFDisplayItem->setDepth - Sets z-order

Syntax

void SWFDisplayItem->setDepth (int $depth)

Arguments

  • depth - Value of alpha component

Description

swfdisplayitem->setdepth() sets the object's z-order to depth. Depth defaults to the order in which instances are created (by adding a shape/text to a movie)- newer ones are on top of older ones. If two objects are given the same depth, only the later-defined one can be moved.

Version

PHP 4.0.5

Return value

No value is returned.