What are the key differences between JavaScript and ActionScript 3?

后端 未结 7 1986
孤城傲影
孤城傲影 2020-12-01 05:39

I know both languages are from the same ECMA-262 standard. It seems that the two are becoming very similar with JavaScript adding event listeners for core Object instances t

相关标签:
7条回答
  • 2020-12-01 06:02

    From a developer point of view, what matter most:

    1) Javascript is not really OOP, it has NO super keyword, which means if you override( by any means ) something, you can't call it through super, and this is the deal breaker for complex programs for which OOP is the key, and Actionscript3 is all OOP, you can have millions line of Actionscript3 code working together, and well maintained.

    2) Actionscript3 runs in Flash Player which has only one implementation from Adobe, this means it's consistent all the time, all browsers( as long as installed Flash Player), but Javascript runs in browsers directly, but each browser has its own implementation, which means your Javascript code has to be tested against all targeted browsers to ensure working.

    0 讨论(0)
提交回复
热议问题