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






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

    }
  }
}

        








Related examples in the same category