Hi there
lets say I have defined a class called “Point3d”, the file is containing the following code:
package {
public class Point3d {
public function Point3d(x:Number, y:Number, z:Number) {
}
}
}
Somewhere in a class called “Plane” I have the following constructor:
package {
import Point3d;
public class Plane{
public function Plane(position:Point3d = new Point3d(0,0,0)) {
}
}
}
As you can see, the default value is a Point3d(0,0,0), but when I compile this using the flex 2 compiler, it says “Parameter initializer unknown or is not a compile-time constant”, how do I work around this?