I am trying to add 4 items to stage from the library, "Plane0", "Plane1"..."Plane3". Each uses a base class of "com.Plane", and an auto-generated class for itself (named "Plane0"..."Plane3").

com.Plane takes 4 parameters.

I use the following code to get the items on stage:

PHP Code:
// getDefinitionById is imported
for (var i:int 04i++){
    var 
planeName:String =  "Plane" i;
    var 
ClassReference:Class = getDefinitionByName(planeName) as Class;
    var 
myPlane:Plane = new ClassReference("param0","param1","param2","param3");
    
addChild(myPlane);

but I get the following error:

ArgumentError: Error #1063: Argument count mismatch on Plane0$iinit(). Expected 0, got 4.

what am I missing here?