ActionScript 3.0 Overview

Source: Internet
Author: User
It can be said that this is the first ActionScript file I translated, although as3.0 is very loud. however, since there are few Chinese introductions, I have translated this article. this article is translated from: due to the limited level of English and the limited level of ActionScript, there may be some errors. I would like to ask the readers to point out this article, but I also hope it will be useful to everyone.

Actionscript3.0 Overview

The evolution of ActionScript 3.0 into a powerful object-oriented programming language represents a significant change in the Flash Platform. This change also means that ActionScript 3.0 will creatively establish a wide range of applications that adapt to the network and become an essential part of the rich network application project. In earlier versions of ActionScript, this requirement has been provided to create the power and flexibility to truly participate in online experience. Actionscript3.0 will promote and develop this kind of performance, provide advanced and highly complex applications that develop strong performance and comfort, and combine code for large databases and face-to-face objects that can be migrated. With the WordPress 3.0, developers may achieve the same efficiency and performance. ActionScript 3.0 is based on ecmascript and ecmascript is an internationally standardized language for all programming languages. Actionscript3.0 also complies with the ecmascript language specification. ActionScript is executed by the ActionScript Virtual Machine (AVM) embedded in Flash Player. Avm1 is a virtual machine that runs earlier versions of ActionScript. Today's more powerful Flash Platform makes it possible to create interactive media and rich network applications. However, avm1 is squeezing the limit of developers-their project is now at the moment to demand its transformation. ActionScript 3.0 provides a more efficient Virtual Machine-avm2 for executing the Event code, replacing avm1 with a complete one. It means that the execution efficiency of actionscript3.0 will be at least 10 times higher than that of the previous ActionScript. The new avm2 virtual machine will be embedded in flashplayer8.5, which will become the first virtual machine to execute ActionScript. Of course, the old avm1 will continue to be embedded in flashplayer8.5 to be compatible with the previous ActionScript. There are many products that present their own display and Application in Flash Player, And the animations of these products are often applied to ActionScript to increase interaction and behavior to express their products. In the Macromedia Product family, professional designers and may use ActionScript in several products, such as Macromedia Flash, flex, and Flash Media Servers, to create content and applications in Flash Player. In the flex2 product family, including the latest flex builder 2ide Based on eclipe-, it will be the first new experience product in the series of products that applies the new experience of The ActionScript 3.0.

Objective of ActionScript 3.0

We need ActionScript 3.0 to provide an advanced, consistent with the programming model, compliant with industry standards, and will perform an order of magnitude higher than our previous execution performance. Although actionscript3.0 represents a new programming model of the Flash Platform, it will also be a basic programming language for developers to familiarize themselves with objects.

The emergence of actionscript3.0 will show the following goals:

Security-it supports certain security so that developers can write clearly and easily maintained code. Simplicity-this language intuitively enables developers to directly read and write projects without frequent reference to manual performance-this language enables developers to write highly efficient and expressive complex projects. Compatibility-this language discards nonstandard language standards and provides forward compatibility and meaningful alternation to comply with industry standards. Actionscript3.0 is a standardized ActionScript 2.0, with the addition of the XML application (E4X) in ecmascript, which makes the integration of this language into ecmascript a consistent overall connection.

Features of ActionScript 3.0

ActionScript 3.0 consists of two parts: core language and Flash Player API. The core language is used to define the structure of a programming language, such as declaration, representation, condition, loop, and type. The Flash Player API is composed of a series of classes that precisely define the Flash Player function. Actionscript3.0 tries its best to explore new features of the computer's residual performance. Rule expression supports XML that makes the operation more powerful. Ecmascript for XML (E4X) makes XML a common data type, which greatly simplifies XML processing. The new displaylistapi makes the virtual objects more consistent. The standardized DOM event model makes the expression and response of those objects more powerful. Of course, these are only part of the many new experiences of actionscript3.0.

Actionscript3.0 Language Features

The emergence of ActionScript 3.0 is the integration of ecmascript into the core language of ActionScript 2.0 to comply with its standards and to introduce new improved functional areas. All these features are described and discussed in detail in the reference to the language of ActionScript 3.0. The trial version is available in the Macromedia lab. The following are some new features that developers can summarize for their convenience and usage.

Enhance the ability to handle running errors

Many seemingly "flawless" Running errors cannot be recorded when you apply the event 2.0. This makes it impossible for Flash Player to pop up a dialog box with a prompt error, just as the Javascript language showed in earlier browsers. That is to say, these missing error reports make us have to spend more energy debugging the actionscript2.0 program. Actionscript3.0 introduces a wider range of errors that may occur during compilation. The improved debugging method enables robust handling of errors in application projects. The prompt running error provides enough notes (example of the source file with an error) and a timeline with a number to help developers quickly locate the location where the error is generated.

Handling of running errors

In actionscript2.0, comments for running errors mainly provide developers with assistance. All the help methods are dynamic. In ActionScript and 3.0, the information will be saved to a certain amount, and flashplayer will provide time-based checks to improve the system running security. This information will be recorded to monitor the running status of variables on the computer, so that developers can improve their application projects to reduce memory usage.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.