# How can I check if texfield is changed programmatically

**URL:** <https://forum.kirupa.com/t/how-can-i-check-if-texfield-is-changed-programmatically/332571>\
**Category:** flash\
**Created:** [July 31, 2014, 5:48am UTC](https://forum.kirupa.com/t/how-can-i-check-if-texfield-is-changed-programmatically/332571 "2014-07-31T05:48:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nikel](https://avatars.discourse-cdn.com/v4/letter/n/b782af/32.png) [@nikel](https://forum.kirupa.com/u/nikel)\
**Post date:** [July 31, 2014, 5:48am UTC](https://forum.kirupa.com/t/how-can-i-check-if-texfield-is-changed-programmatically/332571/1 "2014-07-31T05:48:56Z")

</div>

Hello, I have a textfield and an eventlistener. I want to detect if textfield is changed programmatically or by user input. My code:

```auto
...
else if(lastChar == "/") { // else if (event.target.text.charAt(groupingFr.length-1) == "/") {
    subunits = 1;
    left_mc.numeric_st.value = 1;
    groupingFormula_txt.text.replace(groupingFormula_txt.text.charAt(groupingFormula.length - 1), "");

    setNumericSt();
}
...

```
