Optionally omit the second parameter, substr returns a substring starting at the specified index and going to the end of the original string. : substr « String « Flash / Flex / ActionScript
Optionally omit the second parameter, substr returns a substring starting at the specified index and going to the end of the original string.
package{ import flash.display.Sprite;
public class Main extends Sprite{ public function Main(){
var sTitle:String = new String("ActionScript Bible");
trace(sTitle.substr(6)); // Displays: Script Bible
}
}
}