DepthManager.setDepthTo()

Availability

Flash Player 6.0.79.

Edition

Flash MX 2004 and Flash MX Professional 2004

Usage

movieClipInstance.setDepthTo(depth)

Parameters

depth A depth level.

Returns

Nothing.

Description

Method; sets the depth of movieClipInstance to the value specified by depth. This method moves an instance to another depth to make room for another object.

Example

The following example sets the depth of the mc1 instance to a depth of 10:

mc1.setDepthTo(10);

For more information about depth and stacking order, see Determining the next highest available depth in ActionScript Dictionary Help.