# Using loop to create sound object

**URL:** <https://forum.kirupa.com/t/using-loop-to-create-sound-object/294660>\
**Category:** Uncategorized\
**Created:** [August 18, 2009, 9:28am UTC](https://forum.kirupa.com/t/using-loop-to-create-sound-object/294660 "2009-08-18T09:28:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tzachikk](https://avatars.discourse-cdn.com/v4/letter/t/4491bb/32.png) [@tzachikk](https://forum.kirupa.com/u/tzachikk)\
**Post date:** [August 18, 2009, 9:28am UTC](https://forum.kirupa.com/t/using-loop-to-create-sound-object/294660/1 "2009-08-18T09:28:15Z")

</div>

why does this not working?

for (i=0; i\<=numVoices; i++) {  
var this[“voice”+i]:Sound= new Sound();  
}

(say in output window: Identifier expected)
