Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

The Features Of ActionScript 2.0 And ActionScript 3.0

4,016 views

Published on

The scripting language used for Flash is ActionScript which is based on ECMAScript from which JavaScript is also derived.

Published in: Technology
  • Be the first to comment

  • Be the first to like this

The Features Of ActionScript 2.0 And ActionScript 3.0

  1. 1. The Features Of ActionScript 2.0 And ActionScript 3.0The scripting language used for Flash is ActionScript which is based on ECMAScript fromwhich JavaScript is also derived. One can find excessive use of Adobe Flash andActionScript 3.0 in mobiles, desktops, smart phones, tablets, televisions, laptops anddigital pads. The following are the major advantages of Flash.1. Cross-browser compatibilityFlash is browser independent. It has no issues with cross browser compatibility. FlashProgrammers need not worry about the HTML and CSS code being interpreted differentlyin different browsers. As long as the Flash player plug-in is installed on the user´scomputer, Flash content could be viewed without any issues.2. InteractivityFlash supports audio, animation, and advanced video handling and interactivity. Flash isvector-based, but allows incorporation of bitmaps. Flash applications can collect data,online games, feedback forms, photo slide show, audio, movies, charts, shopping carts,and different web applications that server-side scripts can do, thus making the websitemore interactive and expressive.ActionScript 3.0 is much more structured and object oriented compared to ActionScript2.0. Flash Developers from other languages are likely to be comfortable with the strictertype checking system, improved class inheritance system, better debugging, and unifiedevent handling in ActionScript 3.0. But for developers who learned ActionScript 2.0, thetransition to ActionScript 3.0 can be bit intimidating. Most of the code examples foundthat are written in ActionScript 2.0 will not be compatible when written in ActionScript3.0.A Flash Player includes two virtual machines so that it can support ActionScript 3.0 as itevolves, while still supporting legacy ActionScript 2.0 and ActionScript 1.0 content. If aprogrammer already knows and is comfortable with programming games in ActionScript2.0, he/she can continue with it as Flash Player is backwards compatible with the code.There are, however, many reasons why one must take time to learn ActionScript 3.0.The primary motive is performance. Game developers tend to push Flash Playerperformance to the edge as they create amazing browser-based games. Flash can beused to replace text elements on HTML Web pages with Flash equivalents. This imagereplacement technique is called Scalable Inman Flash Replacement. Code written inActionScript 3.0 can run 10 times faster than ActionScript 2.0 code. ActionScript 3.0 hasintroduced support for hardware acceleration, which will only continue to improveperformance going forward.Now let us compare the features of ActionScript 2.0 and ActionScript 3.0ActionScript 2.0ActionScript 2.0 was introduced in September 2003 with the release of Flash MX 2004and along with its corresponding play Flash Player 7. ActionScript 2.0 was used for largerand more complex applications. It featured compile-time type checking and class-basedsyntax, such as the keywords class and extends. With ActionScript 2.0, developers couldconstrain variables to a specific type by adding a type annotation so that type mismatcherrors could be found at compile-time. ActionScript 2.0 also introduced class-basedinheritance syntax so that developers could create classes and interfaces, much as theywould in class-based languages such as Java and C++. This version confirmed partiallyto the ECMAScript Fourth Edition draft specification.
  2. 2. ActionScript 3.0In June 2006, ActionScript 3.0 was released along with Adobe Flex 2.0 and itscorresponding player, Flash Player 9. ActionScript 3.0 was a fundamental restructuringof the language, that it uses an entirely different virtual machine. Flash Player 9 containstwo virtual machines, AVM1 for code written in ActionScript 1.0 and 2.0, and AVM2 forcontent written in ActionScript 3.0. Actionscript 3.0 added limited support for hardwareacceleration (DirectX, OpenGL).The update to the language introduced several new features:•Compile-time and run-time type checking and type information exists at both compile-time and runtime.•Improved performance from a class-based inheritance system than that of theprototype-based inheritance system.•Support for packages, namespaces, and regular expressions.•Compiles to an entirely new type of bytecode, incompatible with ActionScript 1.0 and2.0 bytecode.•Revised Flash Player API, organized into packages.•Unified event handling system based on the DOM event handling standard.•Integration of ECMAScript with XML (E4X) for purposes of XML processing.•Direct access to the Flash runtime display list for complete control of what getsdisplayed at runtime.•Limited support for dynamic 3D objects. (X, Y, Z rotation, and texture mapping).About Author:DCKAP is a Fremont, CA based global technology services company delivering technologydriven business solutions that meet the strategic objectives of the clients. Also For Freeconsultation and more informations on regarding Flash Developers, Flash ActionscriptDevelopment and Flash Programmers.DCKAP2201 Walnut Ave, Suite 240Fremont, CA 94538Call US: 1 510.796.2525Email: infoca@dckap.com

×