# Tracing last part of instance name

**URL:** <https://forum.kirupa.com/t/tracing-last-part-of-instance-name/276288>\
**Category:** flash\
**Created:** [November 25, 2008, 1:22pm UTC](https://forum.kirupa.com/t/tracing-last-part-of-instance-name/276288 "2008-11-25T13:22:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marije](https://avatars.discourse-cdn.com/v4/letter/m/b3f665/32.png) [@Marije](https://forum.kirupa.com/u/Marije)\
**Post date:** [November 25, 2008, 1:22pm UTC](https://forum.kirupa.com/t/tracing-last-part-of-instance-name/276288/1 "2008-11-25T13:22:41Z")

</div>

Hi, Iam wondering if someone can help me.  
I have different movieclips on the stage and named the instances “item\_0”, “item\_1”, “item\_2” etc.

I want to trace in actionscript only the number of the movieclips and put that in a variable at the moment there is CLICK event. I need only the number because Iam trying to link the number with a XML file.

Does anyone know how to adress only a specific, in this case the last, part of the instancename.
