public function Foo(param:*):void
{
if (param is Array)
{ // Treat as array }
else if (param is Matrix)
{ // Treat as matrix }
else if (param is WhateverType)
{ // You get the idea }
}
On Fri, Oct 15, 2010 at 7:02 PM, Navin <[email protected]> wrote:
> Hi,
>
> ActionScript doen't support function overloading concept then what is
> the work around?
>
> Regards,
> Naveen.
>
> --
> 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]<flex_india%[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.