Working with Substring Values : Substr : String Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » String » Substr »

 

Working with Substring Values


 

package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){

        var sTitle:String = new String("ActionScript Bible");
        trace(sTitle.substr(66));  // Displays: Script
        trace(sTitle.substr(06));  // Displays: Action
        trace(sTitle.substr(012))// Displays: ActionScript

    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo String
» Substr