# Detecting changed values on dynamic objects

**URL:** <https://forum.kirupa.com/t/detecting-changed-values-on-dynamic-objects/297824>\
**Category:** flash\
**Created:** [October 8, 2009, 7:15pm UTC](https://forum.kirupa.com/t/detecting-changed-values-on-dynamic-objects/297824 "2009-10-08T19:15:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![IQAndreas](https://avatars.discourse-cdn.com/v4/letter/i/f08c70/32.png) [@IQAndreas](https://forum.kirupa.com/u/IQAndreas)\
**Post date:** [October 8, 2009, 7:15pm UTC](https://forum.kirupa.com/t/detecting-changed-values-on-dynamic-objects/297824/1 "2009-10-08T19:15:47Z")

</div>

I was wondering if it is possible to capture whenever properties are set/accessed/created on dynamic objects?

Basically, among others, I want to create a little quick system which acts as an Array and allows you to set the same value of all items inside of it.

For example:

```auto
var dynamicObjArray:DynamicObjectArray = new DynamicObjectArray();
dynamicObjArray.push(mc1, mc2, mc3, mc4, mc5, mc6);

//Sets **all** of the items inside the array to an alpha value of 0
dynamicObjArray.alpha = 0;

//Tweens all of the values in the array to an alpha value of back to 1
//Instead of 6 different tweens running, this one tween will
//act on all 6 and set them to the same value.
//Of course, TweenLite doesn't know this. All it sees is that one object's property.
TweenLite.to(dynamicObjArray, 1, {alpha:1});

```

There are several workarounds, (including checking the current value each frame) but I want to know if there is any way of detecting changed properties at all.
