# Array decleration problem

**URL:** <https://forum.kirupa.com/t/array-decleration-problem/121598>\
**Category:** Uncategorized\
**Created:** [September 4, 2004, 10:07am UTC](https://forum.kirupa.com/t/array-decleration-problem/121598 "2004-09-04T10:07:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fightalone](https://avatars.discourse-cdn.com/v4/letter/f/22d042/32.png) [@fightalone](https://forum.kirupa.com/u/fightalone)\
**Post date:** [September 4, 2004, 10:07am UTC](https://forum.kirupa.com/t/array-decleration-problem/121598/1 "2004-09-04T10:07:49Z")

</div>

hi folks… i got problems with the following code… i’m used to code c++ so i’m quite unused to AS… is it possible to declare arrays like this:

```
aBgPic[11] = new Array;
 for(x=0; x&lt;=11; x++)
 {
     aBgPic[x] = "bg_pics/bg_pic" + x + ".jpg";
 }

```

this code doesnt work… could someone pls tell me an alternativ… or how to do it right…

thx in advance

yours
