Determining the Number of Characters : String length : String Flash / Flex / ActionScript examples


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

 

Determining the Number of Characters


 

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