Flash Advanced Knowledge Learning: ActionScript literacy

Source: Internet
Author: User
Tags exception handling
Senior

With the introduction of AS3 specifications, many flash developer also increasingly want to understand AS3, my article should be careful to watch the AS3 specifications before you have a literacy level understanding of ActionScript, although it is a literacy level, but it is not similar to the "hello! World "type of article, see you know it.

Action Script

Action script is referred to as as, which is the scripting language of the Flash product platform. This language can realize the content and content in Flash, the interaction between content and user. The interpretation of as is explained by Action Virtual Machine (AVM), which can be called as virtual machines, similar to JVM,AVM as part of the Flash Player player. The AS statement is remembered to be compiled using the Flash authoring tool or the Flex server to generate the 2 code format, and the compiled 2 code format becomes part of the SWF file and is executed by the Flash Player. AS1.0 originated from the ECMAScript standard, because of the compatibility of ECMA syntax and the size of the Flash Player player and the needs of the rendering engine, as can be called the syntax from ECMAScript.

Speaking of as the FLASH4 as set, it used to make the content of FLASH4 compatible format changeable. But to some extent, FLASH4 's as cannot be called a mature collection of scripting languages that are recognized by developers. Its grammatical style is completely different from that of ECMAScript. Although we can add some ECMA to it in the Flash5 era, as in Flash4 is entirely at odds with the ECMAScript standard. Now Flash4 's as can still be applied to the contents of the Flash Lite1.1.

AS1.0 was born from the age of Flash5, and the version already possessed the ECMAScript standard syntax format and semantic interpretation. Although the later Flash PLAYER5/6 's player version (build) has been updated repeatedly, more and more ECMA syntax and semantics have been incorporated into the AS1.0 API, but the compilation and presentation of the core language is a continuation of the Flash5 AS1.0 standard. Even to later Flash7, for AS1.0 's core explanation mechanism, still has many similarities with the Flash PLAYER5.

AS2.0 was introduced slowly in the MX era, and the MX 2004 version was fully adopted by developers. The operation of AS2.0 is a mechanism that is fully in the version of Flash PLAYER6. AS2.0 can be run in FLASH6 because the AS2.0 statement still uses the AS1.0 model in the Run-time (runtime) environment. This is also the essence of why AS2.0 performance is not better than AS1.0 the important reason. AS2.0 is more mature, introduces object-oriented programming, has good type declarations, and separates Run-time and compile-time exception handling. AS2 complies with the ECMA4 Netscape language scheme, but is not fully compatible with ECMAScript standards. Although based on AS2 development methods from the eyes of many developers are mixed, but it is undeniable that AS2 for the birth of AS3.0 laid a broad road.

AS3.0 's specifications are out, and AS3.0 is the core of future flash development scripts. AS3 's player only starts with Flash Player version 8.5, which is the Flex 2.0 beta that we use now to compile the AS3. AS3 has a lot of differences, it will fully support the ECMA4 language standards, meaning that AS3 will have ECMAScript package/namespace namespace, and many other features of AS2. AS3 will fully support e4x, which is the standard that supports Ecmascrpit for XML. AS3 will use the new AVM to explain, and the AS1/2 AVM will be completely different. Furthermore, the AS3 compiler is also completely different from the AS2 compiler. In addition, AS3 API will be more intuitive, will remove many confusing parts, add to ECMA comprehensive compatibility, the purpose is to make based on AS3 content faster and stronger.

With so much to say, AS3 in the end contains details. Go to spec to dig a bit, and then first use Flex Builder 2 to experience it.



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.