To determine the number of characters a string object contains you can check its length property. : Length : String Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » String » Length »

 

To determine the number of characters a string object contains you can check its length property.


 

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


         var bigWord:String = "CONIOSIS";
         trace("Number of letters: ", bigWord.length)// Displays: 45

    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo String
» Length