It seems like ES6 supports static inheritance. The means you can define a class with static methods which can be called in subclasses. You can also use “this” in static methods which will refer to the subclass methods if overridden. This is obviously something which doesn’t work in AS3.
I’m porting an ES6 library to AS3 and I’m trying to figure out the best way to port this kind of code. I’m thinking that code duplication is probably simplest, although I might just convert the static classes into singletons. Harbs
