title: I'm getting wrong char while tracing
body: <p>I'm trying to check char of a textfield but it traces wrong char. Here's my code</p>
  
  <pre><code>function onGrFormulaChange(event:Event):void {      
      if (groupingFormula_txt.text.length != 1) {
          if (groupingFormula_txt.text != "") {
              if (String(groupingFormula_txt.text.charAt(groupingFormula_txt.length - 1) == "+")) {
                  trace(groupingFormula_txt.text.charAt(groupingFormula_txt.length - 1)); // outputs /
              }
          }
      }
  }
  </code></pre>
  
  <p>Above code traces "/". Is this a bug or what am I doing wrong? I'm using Adobe flash Professional cc 2014.</p>