2 ms·
ActionScript is a superset of JavaScript with syntactic sugar. All the "differences", mostly type annotations, class-based oop, and traits, are superficial and
by mahmud 16y ago
ActionScript is a superset of JavaScript with syntactic sugar. All the "differences", mostly type annotations, class-based oop, and traits, are superficial and do not modify the language to any reasonable degree. Every ECMAScript program is also a valid ActionScript 3 program.
What do you mean "javascript doesn't compile"? if you mean it doesn't have a native ahead-of-time compiler for an existing physical processor, well, that's not a language problem but a community/effort problem :-)
- treeface 16y agoI agree with you in general about the similarities between the two languages, but I haven't seen any movement from one to the other regarding the differences. I simply meant to address your comment regarding JS becoming AS. Re: compilation...sorry..that's exactly what I meant :-]. As far as I know, you can't open a prompt in a Flash app and code AS on the fly like you can in Javascript. I don't consider this a problem...I actually prefer JS to AS.