Default parameters in ActionScript 3.0
- by camusgroup
I have a function, for example
function test(p1:int=7,p2:Boolean=true,p3:uint=0xffff00,p4:Number=55.5)
{
//instructions
}
How to change only p4, for example, and parameters p1,p3,p3 was still default?
Next time I want to change for example only p2, and parameters p1,p3,p4 was still default?
etc.