Is ActionScript like JavaScript?

I have an Essential ActionScript 3 (O'Reilly) book to learn about using this language. It mentions that ActionScript 3 is an implementation of ECMAScript, just like Javascript. I find it strange because there are many differences. In Javascript, as far as I know, you cannot give variables a type (var marvin: Robot) or create "traditional" classes and interfaces. This, however, is possible in ActionScript.

What?

+3
source share
4 answers

Current browser Javascript implementations follow the Ecmascript 3 specification. ActionScript implements Ecmascript 3, but also some elements in the draft Excript 4 project (at that time). ES4 has classes, classic inheritance, packages, and other functions that you see in AS3.

ES4 is now abandoned, but here is a link to the PDF specifications .

+12
source

ActionScript 1 (Flash Player 5 and 6) is very close to JavaScript.

+1
source

ECMAScript ():

ECMAScript - , Ecma International ECMA-262 ISO/IEC 16262. , , JavaScript, ActionScript, JScript.

, , - "" ECMAScript, ( ) - .


ActionScript , (, ):

ActionScript - ECMAScript.

, " " .


, ECMAScript, , , ECMAScript 5, , , Javascript ECMAScript 3:

2009 , - JavaScript 1.8.1. ECMAScript (ECMA-262) 3.

0

ECMAScript - . Javascript ActionScript . , .

0

Source: https://habr.com/ru/post/1717689/


All Articles