# getInstanceAtDepth

**URL:** <https://forum.kirupa.com/t/getinstanceatdepth/180833>\
**Category:** flash\
**Created:** [March 3, 2006, 6:43pm UTC](https://forum.kirupa.com/t/getinstanceatdepth/180833 "2006-03-03T18:43:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ginsengdesign](https://avatars.discourse-cdn.com/v4/letter/g/278dde/32.png) [@ginsengdesign](https://forum.kirupa.com/u/ginsengdesign)\
**Post date:** [March 3, 2006, 6:43pm UTC](https://forum.kirupa.com/t/getinstanceatdepth/180833/1 "2006-03-03T18:43:32Z")

</div>

ok. i’ve got this little lady, “var newPiece = selectVar.getInstanceAtDepth(1);” returning “\_level0.piece6.spot6” now i want to reference “spot6” in the next line but “spot6” could be anything at different points of the movie. So what should i use to delete “\_level0.piece6.” from what getInstanceAtDepth(1) returns?

THANKS!!!
