AS3 added classes and static typing on top of ECMAScript, but lost out to regular ES3 in browsers.
In a surprising twist of history, AS3's ideas were rediscovered years later with a language called Typescript that among other things added classes and static typing...
Flash development's language and tools were surprisingly ahead of their time!