Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 87055

AS3 - New movieclip instance

$
0
0

I have 3 types of mc's. I would like to create a new instance of a random mc of one of those types. I wrote somenthing like this but I receive an error:

Error #1007: Instantiation attempted on a non-constructor.

 

i tried something like this:

 

var newMC:* = new match[i] as match[i];

 

match is an array that contains the 3 types of mc's. match[i] will be something like [object orange], so I want to create a new instance of orange mc.

 

How can I do that?


Viewing all articles
Browse latest Browse all 87055

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>