Hello all,
I’m working on a simple beat-em-up castle crashers style game, but I’ve got one strange, strange bug holding me back. The error message I’m getting is this:
1044: Interface method setTag in namespace ICollider not implemented by class Mobile.
The problem is… setTag most definitely is implemented. Here is the relevant code:
package
{
public interface ICollider
{
function getTag() : uint;
function setTag(t : uint) : void;
}
}
and
package
{
class Mobile extends MovieClip implements ICollider
{
private var tag : uint;
…
private function setTag(t : uint) : void
{
this.tag = t;
}
public function getTag() : uint
{
return this.tag;
}
…
}
}
The weirdest part is, getTag doesn’t trigger an error. I have no idea why the complier cannot recognize setTag. I’ve tried: commenting out all other references to setTag throughout the program, removing the visibility modifier, directly importing ICollider, and changing every single part of the method signature.
TL;DR The compiler thinks a class is not implementing a method declared in an interface, but it is. what else could trigger this error? has anyone had this problem before??