class Car { private var _sMake:String = null; private var _sModel:String = null; private var _sExteriorColor:String = null;
public function Car() { switch(arguments.length) { case 3: _sExteriorColor = arguments[2]; case 2: _sModel = arguments[1]; case 1: _sMake = arguments[0]; }
} }
Related Scripts with Example Source Code in same category :