# Variable listener?

**URL:** <https://forum.kirupa.com/t/variable-listener/248062>\
**Category:** flash\
**Created:** [January 3, 2008, 12:00pm UTC](https://forum.kirupa.com/t/variable-listener/248062 "2008-01-03T12:00:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![funkyjones](https://avatars.discourse-cdn.com/v4/letter/f/43a26b/32.png) [@funkyjones](https://forum.kirupa.com/u/funkyjones)\
**Post date:** [January 3, 2008, 12:00pm UTC](https://forum.kirupa.com/t/variable-listener/248062/1 "2008-01-03T12:00:21Z")

</div>

Hey,

I’ve been googlin around and searchin the forum… and the answer to my question might be watch()

I wanna call a function when a variable or a string is changed, or when data is inserted to the string.

You might say i wanna use a onData event listener on a string… i dont know if watch() does the job? Im at work so i can’t really try the method…

Thanks!
