Get old text from change event?

Posted by Biroka on Stack Overflow See other posts from Stack Overflow or by Biroka
Published on 2010-05-25T18:08:12Z Indexed on 2010/05/25 18:11 UTC
Read the original article Hit count: 256

Can I somehow find out what was the change in the textfield? I would want to compare the old text with the new text ... the problem is, that I have multiple textAreas in a tab-editor, and all the textAreas are watched by one eventListener. I want to get a value calculated by the next formula:

globalChangeCount += thisTextArea.currentCharacterCount - thisTextArea.oldtCharacterCount

where the globalChangeCount is a value modified by all changes in any of the textAreas.

I am searching for these values through the event variable, but can't seam to find the old text of the textArea.

© Stack Overflow or respective owner

Related posts about flex

Related posts about actionscript-3