FEK315
04-17-2010, 11:58 PM
I am learning about inheritance.
I have 3 class files that get called from one SWF.
Car.as and Truck.as inherit a constructor from the main class Vehicle.as
My main.fla creates a Car and Truck object and gives them each a trace statement, so I know that each has been created.
My problem is that I keep getting this error:
[COLOR="red"]1203: No default constructor found in base class Vehicle.
my files are all in the same folder. Why won't the swf see the construtor in Vehicle Car and Truck.as files?
I got Vehicle.as to work when it was the only class file by declaring it in the FLA Property Document Class box. I know this has some thing to do with my error message but I can't seem to fix it.
Thank you
I have 3 class files that get called from one SWF.
Car.as and Truck.as inherit a constructor from the main class Vehicle.as
My main.fla creates a Car and Truck object and gives them each a trace statement, so I know that each has been created.
My problem is that I keep getting this error:
[COLOR="red"]1203: No default constructor found in base class Vehicle.
my files are all in the same folder. Why won't the swf see the construtor in Vehicle Car and Truck.as files?
I got Vehicle.as to work when it was the only class file by declaring it in the FLA Property Document Class box. I know this has some thing to do with my error message but I can't seem to fix it.
Thank you