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 examples
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 } } }
Related Scripts with Example Source Code in same category :