I am creating objects for a game, they are all sprites. but I also want them to implement an interface. Is it possible to do both ? If not, how can i have an object have the capabilities of a sprite and also have it implement an interface. I am wanting to create another class that checks all my objects to see what datatype they are and evaluate them accordingly
Share
It is possible for all ActionScript objects to both implement an interface and extend a class. Here’s an example:
Furthermore, the
iskeyword works with interface implementations: