# Wonky dynamic constructors - new call?

**URL:** <https://forum.kirupa.com/t/wonky-dynamic-constructors-new-call/318351>\
**Category:** Uncategorized\
**Created:** [January 18, 2011, 12:35am UTC](https://forum.kirupa.com/t/wonky-dynamic-constructors-new-call/318351 "2011-01-18T00:35:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lnsiu](https://avatars.discourse-cdn.com/v4/letter/l/9fc29f/32.png) [@lnsiu](https://forum.kirupa.com/u/lnsiu)\
**Post date:** [January 18, 2011, 12:35am UTC](https://forum.kirupa.com/t/wonky-dynamic-constructors-new-call/318351/1 "2011-01-18T00:35:01Z")

</div>

Is this really the correct way for dynamic constructors?  
It looks a bit wonky, but it works.

```php

//library linkage
var symbls:Array = [symb1,symb2];

var m1:MovieClip = new symbls[0]();
var m2:MovieClip = new symbls[1]();

addChild(m1);
addChild(m2);

```

Edit: and why can’t I type the array like this?  
var symbls:Array = [“symb1”,“symb2”];
