I am trying to set a variable to a number from a string. The number can be 1 to 4 characters long. Right now I have it returning the index for the start of the number, I need it to return the number itself.
In the example below I want to captrue the '581'. This is in AS3 by the way.
Any suggestions?
Code: Select all
width="581"