Please help Stackoverflow! I have a MapInterface class in AS3 that inherits from Interface class.
public class Interface extends Sprite {
public function Interface(){
// do stuff
}
}
and then
import com.georgecrabtree.Interface;
public class MapInterface extends Interface {
public function MapInterface(){
addMapButtons();
}
public function addMapButtons():void {
trace("init");
}
}
this all works fine, and when I create a new MapInterface class from the document class it traces out init. But when I try to call this:
var mapInterface:MapInterface = new MapInterface();
mapInterface.addMapButtons();
from the main timeline I get this error:
1061: Call to a possibly undefined method addMapButtons through a reference with static type com.georgecrabtree:Interface.
Thanks in advance for any help, George