# Listen to a variable - is it possible?

**URL:** <https://forum.kirupa.com/t/listen-to-a-variable-is-it-possible/229988>\
**Category:** flash\
**Created:** [June 21, 2007, 8:35pm UTC](https://forum.kirupa.com/t/listen-to-a-variable-is-it-possible/229988 "2007-06-21T20:35:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![philj1986](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/philj1986/32/3660_2.png) [@philj1986](https://forum.kirupa.com/u/philj1986)\
**Post date:** [June 21, 2007, 8:35pm UTC](https://forum.kirupa.com/t/listen-to-a-variable-is-it-possible/229988/1 "2007-06-21T20:35:42Z")

</div>

Hey,  
Im trying to set up an event listener that listens for when a variable has its data changed.

something like this:

var test = “testing…”;

test.addEventListener(variable.DataChangesInside, doSomething);

function doSomething(event:variable){  
trace ("the new value in the variable is: " + event.target)  
}

is there an event like that?

Thanks for any direction at all
