Implicit getters/setters and interfaces
What's the best way around this problem with interfaces?
public interface ITest {
function set testField(test:String):void;
}
public class Test implements ITest {
public var testField;
}
This complains I didn't implement the interface - bull! ![]()
Test does have a setter for testField (an implicit one). I don't want to define an explicit one for every single field I have defined in my interface. There doesn't seem to be a way to define getters/setters in interfaces (or the syntax just escapes me).
Do I have to do this explicit getter/setter nonsense in order to use interfaces in this way? I'd rather not throw away this rather awesome feature of AS3 so I hope there's some easy workaround...
After asking The Google and some search (attempts) here I couldn't find anything on this, so perhaps I'm missing something obvious. It's early in the morning...