Stratboy
May 12th, 2008, 11:01 AM
Hi! Why can't I init my parameter with an object? Ex.
public static function createRect(opt = {x:0,y:0}){....
or
public static function createRect(opt:Object = new Object){....
It says:
1047: Parameter initializer unknown or is not a compile-time constant.
public static function createRect(opt = {x:0,y:0}){....
or
public static function createRect(opt:Object = new Object){....
It says:
1047: Parameter initializer unknown or is not a compile-time constant.