# Putting a loop in an array

**URL:** https://forum.kirupa.com/t/putting-a-loop-in-an-array/252157
**Category:** Uncategorized
**Created:** [February 16, 2008, 10:35pm UTC](https://forum.kirupa.com/t/putting-a-loop-in-an-array/252157 "2008-02-16T22:35:25Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![nukegara](https://avatars.discourse-cdn.com/v4/letter/n/71c47a/32.png) [@nukegara](https://forum.kirupa.com/u/nukegara)
#### Post date: [February 16, 2008, 10:35pm UTC](https://forum.kirupa.com/t/putting-a-loop-in-an-array/252157/1 "2008-02-16T22:35:25Z")

</div>

Heya, I’m new to action script and I was wondering if you could run a loop in an array?

I’m having to make an array that has each value increase by a 10, like 10, 20, 30, etc. is there an easier way to put in those values without adding them ‘manually’?

and I have another question that is related. For this same project, on the stage there will be a text box and the user will put in a number–how can that value be run through the array? like say I input the number 500, how does it find it in the array? is there a passed id, a listener and a broadcaster?
