# Variable + Declaring Question

**URL:** <https://forum.kirupa.com/t/variable-declaring-question/326142>\
**Category:** flash\
**Created:** [November 25, 2011, 2:27am UTC](https://forum.kirupa.com/t/variable-declaring-question/326142 "2011-11-25T02:27:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![selacius](https://avatars.discourse-cdn.com/v4/letter/s/898d66/32.png) [@selacius](https://forum.kirupa.com/u/selacius)\
**Post date:** [November 25, 2011, 2:27am UTC](https://forum.kirupa.com/t/variable-declaring-question/326142/1 "2011-11-25T02:27:44Z")

</div>

I have a question in regards to variables, declaring and “associating”.  
If I create a new object variable such as:

```auto
 var player:Player = new Player();

```

Then I were to place said variable within an array of the party members of my team such as:

```auto

var game_party:Array = new Array(player,...);

```

Where the … resembles other party members i would add, is there any way to make it so that changes for the player object is automatically reflected in the game\_party[0] or vice versa, where changes in game\_party[0] are reflected in the player variable. This being done without having to do either:

```auto

player = game_player[0];

or

game_player[0] = player;

```
