substr() Remove First Character

var someString:String = "_file";
trace(someString.substr(1));
/*
ouptuts:
file
*/

Turns out the second argument of substr() is optional….. not sure how I never noticed that before.

Leave a Reply

Your email address will not be published. Required fields are marked *