Use slice : Slice : String Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » String » Slice »

 

Use slice


 

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

        var example:String = "Rabbits";
        
        traceexample.substring) );       
        traceexample.slice) );           
        
        traceexample.substring-3, -) );  
        traceexample.slice-3, -) );      
        
        traceexample.substring1) );    
        traceexample.slice1) );        
        
        traceexample.substring3) );    
        traceexample.slice3) );        


    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo String
» Slice