Flash 8 Documentation |
|||
| ActionScript 2.0 Language Reference > ActionScript language elements > Global Functions > substring function | |||
substring(string:String, index:Number, count:Number) : String
Deprecated since Flash Player 5. This function was deprecated in favor of String.substr().
Extracts part of a string. This function is one-based, whereas the String object methods are zero-based.
Availability: ActionScript 1.0; Flash Player 4
string:String - The string from which to extract the new string.
index:Number - The number of the first character to extract.
count:Number - The number of characters to include in the extracted string, not including the index character.
String - The extracted substring.
Version 8
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/8/main/00001774.html