Get the length of a string object : String length : String Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » String » String length »

 

Get the length of a string object


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

        var sTitle:String = new String("ActionScript Bible");
        
        trace(sTitle.length);  // Displays: 18

    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo String
» String length