Mega Code Archive
Optionally omit the second parameter, substr returns a substring starting at the specified index and going to the end of the origin
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
}
}
}