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


Flash / Flex / ActionScript examples » String » Substr »

 

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
    }
  }
}

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo String
» Substr