# Private component variables share across instances

**URL:** <https://forum.kirupa.com/t/private-component-variables-share-across-instances/197193>\
**Category:** flash\
**Created:** [August 14, 2006, 4:22pm UTC](https://forum.kirupa.com/t/private-component-variables-share-across-instances/197193 "2006-08-14T16:22:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![suicidePills](https://avatars.discourse-cdn.com/v4/letter/s/e5b9ba/32.png) [@suicidePills](https://forum.kirupa.com/u/suicidePills)\
**Post date:** [August 14, 2006, 4:22pm UTC](https://forum.kirupa.com/t/private-component-variables-share-across-instances/197193/1 "2006-08-14T16:22:20Z")

</div>

Hey all,

I’m having a problem that’s really driving my crazy here. I have a component with an array defined in it’s class file as private. Somehow, when I have more than one instance of the component, all instances seem to share the same array… If I modify the array in one of the instances, it’s modified elsewhere in the other instances.

At this point, I can’t really show any of the actual AS since what I’m working on is a for work, but what I’m wondering is:

1. Has anyone run into similar problems before?
2. Is there a way to define variables within classes / component classes that will ensure that this doesn’t happen?

Thanks very much in advance,

-sp
