[flexcoders] best practice to handle overloading in AS3?

2009-05-28 Thread gwangdesign
Hi, I am trying to overload a method (same name and different signatures)in a subclass. In the inherited class, the method looks like this: public function set dataProvider(value:Array):void In my subclass I want the method to look like this: public function set

Re: [flexcoders] best practice to handle overloading in AS3?

2009-05-28 Thread Pedro Sena
If you want the same method name in a subclass, we are talking about override, not overload. Flex 'deals with overload' making the arguments optionals, example: public function test(obj:Object = null):void then you can invoke it using test() or test(object). Appears that you are trying to