Dynamic naming question

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?

i would name them
"butt_" + the number…

then to reference later:

bigpic=String(this.name);
tRef = bigPic.split("
")
r= Number(tRef[1])

this way you will always get the full number back correctly.

haha. that’s exactly how i figured out how to do it yesterday, i even used the “_”. great minds think alike huh?