ActionScript has been ECMA compatible from the start.
You could imagine javascript and actionscript as a plug from the same standard, that is, ECMA, with Javascript, which tends to add power to the browser, and ActionScript, to the development of flash memory.
It seems fair, since each company at one time tried to create its own version. For example, consider the Microsoft version of ECMA.
You can also consider from the link itself that you shared:
In response to a user's need for a language better suited for larger and more complex applications, ActionScript 2.0 showed compile-time type checking and class-based syntax such as a class of keywords and continues.
So, you could see that most of the changes were really user-driven, not the attendant similarities.
loxxy
source share