PDA

View Full Version : whats above the other



Tarielle
August 1st, 2010, 01:31 PM
Hi, this might be the worse question ever.. But anyway, what decides on what sprite or movie clip gets the highest z coordinate in 2d? I mean which sprites would be on top of the other..

I hope you understood!
Thanks :)

glosrfc
August 2nd, 2010, 09:26 AM
But anyway, what decides on what sprite or movie clip gets the highest z coordinate in 2d? I mean which sprites would be on top of the other..


You decide what depth any particular clip resides in; either explicitly, by providing a level value when you place clips dynamically with actionscript; or implicitly, when you place a clip on the stage in the authoring environment. In the latter case, the depth is automatically assigned by Flash when you publish your SWF and, as a general rule, it's determined by the layer in which the clip appears. A clip in a lower layer has a lower depth than one placed on a higher layer. For clips that share the same layer, the depth is determined by the order in which they're placed on the stage, which you can adjust using the Modify, Arrange options from the menu bar.

Also, see this link:
http://www.kirupa.com/developer/actionscript/depths.htm