Is it posible to have predefined arguments in a constructor so if the user doesn’t enter one it takes the default value?
I tried doing it this way:
class myClass
{
function myClass(arg:String = "something", arg2:Number=45)
{
trace(arg);
}
}
But it says ‘)’ or ‘,’ expected.
I’ve also tried looking in the documentation itself but couldn’t find any hints… and it’s supposed to be posible if you look at the way you create a new array.
thanks in advanced.