# Array access notation in AS3

**URL:** <https://forum.kirupa.com/t/array-access-notation-in-as3/226391>\
**Category:** Uncategorized\
**Created:** [May 21, 2007, 3:34am UTC](https://forum.kirupa.com/t/array-access-notation-in-as3/226391 "2007-05-21T03:34:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![joshchernoff](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/joshchernoff/32/1852_2.png) [@joshchernoff](https://forum.kirupa.com/u/joshchernoff)\
**Post date:** [May 21, 2007, 3:34am UTC](https://forum.kirupa.com/t/array-access-notation-in-as3/226391/1 "2007-05-21T03:34:01Z")

</div>

how to make something like this work

```auto
var i:uint;
for(i=0;i>3;i++){
     var test*:Sprite = new Sprite();
     test*.graphics.beginFill (0xff000000);
     test*.graphics.drawRoundRect (0, 0, 50, 50, 0, 0);
     test*.graphics.endFill ();
     addChild(test*);
     test*.y = 55 * i;
};

```

```auto
1086: Syntax error: expecting semicolon before leftbracket.
var test*:Sprite = new Sprite();

```
