# Array

**URL:** <https://forum.kirupa.com/t/array/198452>\
**Category:** Uncategorized\
**Created:** [August 25, 2006, 5:59am UTC](https://forum.kirupa.com/t/array/198452 "2006-08-25T05:59:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![robinkmedia](https://avatars.discourse-cdn.com/v4/letter/r/ad7895/32.png) [@robinkmedia](https://forum.kirupa.com/u/robinkmedia)\
**Post date:** [August 25, 2006, 5:59am UTC](https://forum.kirupa.com/t/array/198452/1 "2006-08-25T05:59:55Z")

</div>

just wondering why the below is not working-

var ballArray:Array = new Array ();  
for (var i = 1; i \< 4; i++) {  
ballArray.push (“ball” + i + “\_mc”);  
}  
for (var i = 0; i \< ballArray.length; i++) {  
ballArray\*.onRelease = function () {  
trace (this);  
};  
}
