# Detect a variable change

**URL:** <https://forum.kirupa.com/t/detect-a-variable-change/245709>\
**Category:** flash\
**Created:** [December 3, 2007, 9:10am UTC](https://forum.kirupa.com/t/detect-a-variable-change/245709 "2007-12-03T09:10:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon4341189](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@anon4341189](https://forum.kirupa.com/u/anon4341189)\
**Post date:** [December 3, 2007, 9:10am UTC](https://forum.kirupa.com/t/detect-a-variable-change/245709/1 "2007-12-03T09:10:23Z")

</div>

Hi guys,

Let’s say I have a class, and I created a new object of this class in my document class.  
Inside this class, there is a public variable.

How would i be able to detect a change in that public variable?

Thanks 😃
