# Object.watch oddities

**URL:** <https://forum.kirupa.com/t/object-watch-oddities/187765>\
**Category:** flash\
**Created:** [May 2, 2006, 4:17am UTC](https://forum.kirupa.com/t/object-watch-oddities/187765 "2006-05-02T04:17:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SmurfMX](https://avatars.discourse-cdn.com/v4/letter/s/b9e5f3/32.png) [@SmurfMX](https://forum.kirupa.com/u/SmurfMX)\
**Post date:** [May 2, 2006, 4:17am UTC](https://forum.kirupa.com/t/object-watch-oddities/187765/1 "2006-05-02T04:17:11Z")

</div>

Here’s the deal.  
I’m writing a class to allow me to watch one property of an object more than once. The problem is that when I’m inside that class and I set the variable that I’m watching (after I unwatch it) it gets set, however, when I trace it in the function I call after I set it (to do just that, trace) it returns undefined.

There’s more weirdness though. I have an on mouse up handler set to change the variable that I’m watching to test things out, when I trace the variable from the on mouse up (100% positive the path is correct), before and after the var is set, it traces out just fine and dandy.
