It doesn't supports overloading, but there is a way around to deal with the
situation.
For example:
public function someFunction(arg0:int = 0,
arg1:int = 0,
arg2 :int = 0,
arg3:int) = 0);
so now, you can call it as:
-> someFunction(1);
-> someFunction(1,2);
-> someFunction(1,2,3);
-> someFunction(1,2,3,4);
I hope, it serves to your query. :)
--
Abhinav Mehta
On Aug 7, 2011, at 1:38 PM, rajjnd wrote:
> No currently it's not possible for function overloading like c# or
> java does.
>
> On Aug 7, 12:06 am, kamal <[email protected]> wrote:
>> Hi All,
>> is actioncript3 supports function overloading?
>> Thank you,
>> Kamal
>
> --
> You received this message because you are subscribed to the Google Groups
> "Flex India Community" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/flex_india?hl=en.
>
--
You received this message because you are subscribed to the Google Groups "Flex
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/flex_india?hl=en.