I’m using the newest mx2cc version 1.0.7 and have encountered a new behavior that was not an issue in v 1.0.4. If I do not have a default constructor class (ie: New() ) within a given class I get the following error:
Super class ‘file.class’ has no default constructor
This occurs when I do something like
Monkey
1
2
3
4
ClassTest
Fieldtestvar:Int
EndClass
mytest:=NewTest
Do I need to now include a default constructor in every class I make? Something like:
Monkey
1
2
3
4
5
6
7
8
9
10
11
12
ClassTest
Fieldtestvar:Int
Method New()
EndMethod
Method New(var:Int,var2:Int)
dostuff
EndMethod
EndClass
mytest:=NewTest
I suspect this behavior is normal and the way I had been doing it is a MX1 holdover.