Are JavaScript and ActionScript the same?
ActionScript and JavaScript are based on the same ECMA-262, 3rd edition language standard, but the libraries supporting ActionScript and JavaScript are different. For example, JavaScript is generally used within a browser and its Document Object Model (DOM) is browser window-, document-, and form-centric, while also supporting XML, event handling and Ajax. ActionScript executes within the Adobe Flash Player and its DOM is media centric, with support for animations, audio, text, and event handling. In short, the languages are the same but have some unique extensions and supporting libraries. This contribution does not affect the DOM APIs in either Firefox or Adobe Flash Player.