3 Replies Latest reply on Oct 16, 2012 8:15 AM by kglad

    Character count in as3?

    TheGeekGuru

      Hello guys,

      I need some help making a program that count vowels.

      The user inputs a sentece, then clicks a button and the OutputText.text=The number of vowels

       

      I'm quiet sure where to start the function.

      I've tried

      trace(string.match(/[a|e|u|i|o]/gi).length);

       

      but the output in this case renders to Flash CS and not to the Flash player or OutputText.text