# Change an element of entire array at once?

**URL:** https://forum.kirupa.com/t/change-an-element-of-entire-array-at-once/331388
**Category:** flash
**Created:** [July 22, 2013, 6:52pm UTC](https://forum.kirupa.com/t/change-an-element-of-entire-array-at-once/331388 "2013-07-22T18:52:54Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![bking20](https://avatars.discourse-cdn.com/v4/letter/b/e495f1/32.png) [@bking20](https://forum.kirupa.com/u/bking20)
#### Post date: [July 22, 2013, 6:52pm UTC](https://forum.kirupa.com/t/change-an-element-of-entire-array-at-once/331388/1 "2013-07-22T18:52:54Z")

</div>

I have this game I’m making that has an array of “falling” stars. The part where I want the stars to move looks like this:

```auto

function game():void 
			{
				counter = 0;
				do {
					star[counter].y += .1;
					counter++;
				}while (counter < 56);
			}

```

But this only moves one star at a time, causing the falling movement to be choppy. Any way I can move the entire array at once, keeping movement smooth?
