Let’s say I have three Interfaces with a structure as such:
public interface IRegular
- public function toFull();
- public function toSlim();
public interface IFull
- public function toRegular();
- public function toSlim();
public interface ISlim
- public function toRegular();
- public function toFull();
If I recall from a few tests a while back, if I have a class that extends one of them at a time, I have no errors. However, if I use two or more of them, one of the functions will “collide” and cause an error message.
If I recall correctly and an error is thrown**, what is the exact error message that Flash gives? **
**Why does Flash prevent this? **Should Flash not be satisfied that it has all the functions it needs?
Is there any way to tell interfaces to “work together”, consider them almost to be the same, and not worry about conflicting names of functions?
Wohoo! While writing this, I just came up with the perfect workaround for my purposes, so don’t worry about workarounds.
Sorry, I’m still without a compiler, so I can’t test for the error message myself, so any help is REALLY appreciated.