# Detecting change in global variable

**URL:** <https://forum.kirupa.com/t/detecting-change-in-global-variable/305628>\
**Category:** flash\
**Created:** [March 1, 2010, 1:59am UTC](https://forum.kirupa.com/t/detecting-change-in-global-variable/305628 "2010-03-01T01:59:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![newtome](https://avatars.discourse-cdn.com/v4/letter/n/c4cdca/32.png) [@newtome](https://forum.kirupa.com/u/newtome)\
**Post date:** [March 1, 2010, 1:59am UTC](https://forum.kirupa.com/t/detecting-change-in-global-variable/305628/1 "2010-03-01T01:59:04Z")

</div>

I define a global variable in a swf and then launch a child window which will alter the value of the global variable and I want the parent to detect that event and take specific action. How should I go about this? Can global variables launch events?
