# Dynamic naming question

**URL:** <https://forum.kirupa.com/t/dynamic-naming-question/121919>\
**Category:** Uncategorized\
**Created:** [September 8, 2004, 4:25pm UTC](https://forum.kirupa.com/t/dynamic-naming-question/121919 "2004-09-08T16:25:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![stermer](https://avatars.discourse-cdn.com/v4/letter/s/edb3f5/32.png) [@stermer](https://forum.kirupa.com/u/stermer)\
**Post date:** [September 8, 2004, 4:25pm UTC](https://forum.kirupa.com/t/dynamic-naming-question/121919/1 "2004-09-08T16:25:01Z")

</div>

ok, so i have this movie clip, that i am having duplicate and give the dynamic name of (“butt” + g), g being the variable. i need to later reference this number for that button name. so i was doing this

bigpic=String(this.\_name);  
r=bigpic.charAt(4);

which was working fine, up until i got up to number 10, the first two digit number. since it was only pulling the 4th character, it was reading anything in the teens and 1 and anything in the 20’s as 2. now is there a way to pull one, or two numbers from this string? or can i have it pull the string name - butt?
