Hi. In my project I have a Box class that extends MovieClip, and Box has instances of the Egg class. The Egg class receives two arguments on instantiation, month (a string) and size (an int).
Here's my code:
package com.stuff {
import flash.display.MovieClip;
import com.stuff.Egg;
public class Box extends MovieClip {
private var Egg1:Egg = new Egg("jan", 2);
private var Egg2:Egg = new Egg("feb", 5);
public function Box():void {
}
}
}
package com.stuff {
public class Egg {
public function Egg(m:String, s:int):void {
}
}
}
When I test the movie I get the following error: 1136: Incorrect number of arguments. Expected 0.
What am I doing wrong? Thank you.