# Display Object Question

**URL:** <https://forum.kirupa.com/t/display-object-question/293230>\
**Category:** flash\
**Created:** [July 25, 2009, 12:28pm UTC](https://forum.kirupa.com/t/display-object-question/293230 "2009-07-25T12:28:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dqws](https://avatars.discourse-cdn.com/v4/letter/d/e19b73/32.png) [@dqws](https://forum.kirupa.com/u/dqws)\
**Post date:** [July 25, 2009, 12:28pm UTC](https://forum.kirupa.com/t/display-object-question/293230/1 "2009-07-25T12:28:02Z")

</div>

First of all, I want to store a Sprite reference inside an Array,  
Like so

```auto
cubeArray[Y][X] = c; //where Y,X are for loops variables, and C is the Sprite.

```

is it possible to do it in such way? (it was possible in as2),  
if not how can it be done, since I need to access a list of Sprites, choose one and modify one of his Properites.

my second question, is how do I Modify a Sprite from his reference in an Array,  
can it be done like so

```auto
root[cubeArray[Y][X]].gotoAndStop(root[cubeArray[Y][X]].f-cTypes); //Am I using the root - the right way? or should I use something else?

```

Please Help :X
