Search code examples
flashactionscript-3stringactionscriptcount

Count how many times a letter is contained inside a string


The question is pretty self explanatory so is it possible to count how many times a letter is contained inside a string in as3 and return the value to some variable


Solution

  • Sure it is. Have a look at the ActionScript reference for:

    String, string.length, and string.charAt()