# Help with instantiating multiple classes

**URL:** <https://forum.kirupa.com/t/help-with-instantiating-multiple-classes/201181>\
**Category:** Uncategorized\
**Created:** [September 19, 2006, 5:28am UTC](https://forum.kirupa.com/t/help-with-instantiating-multiple-classes/201181 "2006-09-19T05:28:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Trompeta](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/trompeta/32/2828_2.png) [@Trompeta](https://forum.kirupa.com/u/Trompeta)\
**Post date:** [September 19, 2006, 5:28am UTC](https://forum.kirupa.com/t/help-with-instantiating-multiple-classes/201181/1 "2006-09-19T05:28:59Z")

</div>

First of all, please go easy on me… I am a newbie in Actionscript.

I am trying to instantiate multiple classes (Node) using the n0 -\> n117 variable names. Can someone please point me in the right direction?

```auto

for (var i:Number = 0; i < 118; i++) {
        var radius:Number = centerY - 20;
        var angle:Number = (2 * Math.PI * i) / 118;
        var X:Number = centerX + Math.cos(angle) * radius;
        var Y:Number = centerY + Math.sin(angle) * radius;
        var nName:String = "node" + String(i);
        var nName:Node = new Node(nName, X, Y); //my guess problem is here
}

```

Thanks,  
Trompeta
