Interface member name conflicts in ActionScript 3

Posted by Aaron on Stack Overflow See other posts from Stack Overflow or by Aaron
Published on 2010-04-21T00:12:42Z Indexed on 2010/04/21 0:23 UTC
Read the original article Hit count: 598

I am trying to create an ActionScript 3 class that implements two interfaces. The interfaces contain member functions with different signatures but the same name:

public interface IFoo
{
    function doStuff(input:int):void;
}

public interface IBar
{
    function doStuff(input1:String, input2:Number):void;
}

public class FooBar implements IFoo, IBar
{
    // ???
}

In C# this problem can be solved with explicit interface implementations, but as far as I can tell ActionScript does not have that feature. Is there any way to create a class that implements both interfaces?

© Stack Overflow or respective owner

Related posts about actionscript-3

Related posts about language-features