Question
arrays and addchild
Hi,
I have a load of movieclips that have the custom base class called 'Card'. I want to make an array of their names and add them to my stage
var list:Array = new Array("comedyFront", "casinoFront");
for (var j:int = 0; j < list.length; j++)
{
var myMovieClip:Card = new Card(list[0]);
this.addChild(myMovieClip);
}
any ides how I do this? The error is
1137: Incorrect number of arguments. Expected no more than 0.
I have a load of movieclips that have the custom base class called 'Card'. I want to make an array of their names and add them to my stage
var list:Array = new Array("comedyFront", "casinoFront");
for (var j:int = 0; j < list.length; j++)
{
var myMovieClip:Card = new Card(list[0]);
this.addChild(myMovieClip);
}
any ides how I do this? The error is
1137: Incorrect number of arguments. Expected no more than 0.