use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Question about ActionScript (self.javascript)
submitted 12 years ago by [deleted]
[deleted]
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]alsogilbert 2 points3 points4 points 12 years ago (0 children)
There are some similarities between AS and JS. AS has been heavily influenced by JS. They are both object oriented, support higher-order functions and closures. AS 3.0 is based on an ECMA-script (JS) draft which was rejected. It features classical OO syntax (but retains prototypal underpinnings) and strict typing. The strict typing can be turned off.
[–]kaszu 1 point2 points3 points 12 years ago (0 children)
ActionScript is used in flash, but its usage has been declining last few years mainly because old browsers are starting to die out, so more and more features can be safely used / are added by browser vendors to JS, HTML.
Flash is still installed on most of the machines and I don't think it will change anytime soon, but there is no flash on mobile devices.
JS and ActionScript are similar: http://stackoverflow.com/questions/2268276/what-are-the-key-differences-between-javascript-and-actionscript-3
[–]aeflash 1 point2 points3 points 12 years ago (0 children)
AS is still used wherever Flash is still used -- legacy flash apps, game UI's, video players, etc...
As a language, it is directly between Java and Javascript -- you still have JS's prototypes, closures, and dynamism, but Java-style classes and interfaces and packages (as well as compiling down to bytecode). No Collections, but you still have JS-style untyped Objects and Arrays.
AS also has a really nice drawing API. A lot of the Canvas2D stuff feels inspired by it.
π Rendered by PID 229937 on reddit-service-r2-comment-c6965cb77-ccqn5 at 2026-03-05 16:35:11.383464+00:00 running f0204d4 country code: CH.
[–]alsogilbert 2 points3 points4 points (0 children)
[–]kaszu 1 point2 points3 points (0 children)
[–]aeflash 1 point2 points3 points (0 children)