# Set Sprite Index

**URL:** <https://forum.kirupa.com/t/set-sprite-index/244279>\
**Category:** flash\
**Created:** [November 15, 2007, 8:45pm UTC](https://forum.kirupa.com/t/set-sprite-index/244279 "2007-11-15T20:45:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gphilly77](https://avatars.discourse-cdn.com/v4/letter/g/5e9695/32.png) [@gphilly77](https://forum.kirupa.com/u/gphilly77)\
**Post date:** [November 15, 2007, 8:45pm UTC](https://forum.kirupa.com/t/set-sprite-index/244279/1 "2007-11-15T20:45:05Z")

</div>

I’m new to using Sprites so please bear with me on this one…

I have code that creates a sprite with a mask. Right now the sprite automatically displays on top of all the other elements inside the MC that I’m working with. How do I set the index or order of the sprite so it shows up under specific elements on the stage?

Thanks,  
GP
