# Substring

**URL:** <https://forum.kirupa.com/t/substring/87605>\
**Category:** Uncategorized\
**Created:** [April 22, 2005, 7:42am UTC](https://forum.kirupa.com/t/substring/87605 "2005-04-22T07:42:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shinji3c](https://avatars.discourse-cdn.com/v4/letter/s/8c91f0/32.png) [@shinji3c](https://forum.kirupa.com/u/shinji3c)\
**Post date:** [April 22, 2005, 7:42am UTC](https://forum.kirupa.com/t/substring/87605/1 "2005-04-22T07:42:55Z")

</div>

Hi  
Can anyone explain how to use substr method??  
I’m trying to lose a part of the button’s name and only add the numbers  
this is what i mean  
btn1  
btn2  
btn3  
btn4  
btn5

And i want flash to extract btn from the name and use the numbers to get url  
I heard you can do this with substr method but i’m not really sure how…
