charAt() takes one parameter, a value for an index within the string. This method returns a new one-character string that contains the value of the character at the specified index. : CharAt : String Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » String » CharAt »

 

charAt() takes one parameter, a value for an index within the string. This method returns a new one-character string that contains the value of the character at the specified index.


 


package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){
        var sTitle:String = new String("ActionScript");
        var sChar:String = sTitle.charAt(0);
    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo String
» CharAt