AS 2.0 code: object-oriented model

Related Tags:

  Since a few years ago in the introduction of Flash Action Script Language (Action Script), it has a great development.    Published every new version of Flash, ActionScript languages increased by keyword, methods, and other language elements.    However, the different versions of previously released Flash, Flash MX 2004 and Flash MX Professional 2004 ActionScript 2.0 language introduced some new language elements can be implemented in a manner more standard object-oriented programming languages, so that the core elements of ActionScript language capability has been enhanced. 

  ActionScript 2.0 Language is not a new language.    Rather, it consists of a set of core language elements to the development of object-oriented programming easier.    Now, as class, interface, the expansion and the introduction of tools such as keyword, programmers familiar with other languages more easily learn ActionScript language syntax.    New programmers can learn more standard terms, they can be used in the future they might have to learn from other object-oriented languages. 

  ActionScript 2.0 language support all moves of the standard elements of the scripting language, it allows you to prepare more fully close other object-oriented language (such as Java), a standard script.    Are creating the need for a category and sub-category of intermediate or advanced Flash developers this will be quite interested.    ActionScript 2.0 language also allows you to create a variable in its statement the object type, does not provide a significant improvement in compile errors. 

  Below is a list ActionScript 2.0 language in the new language elements. 

  Class 
  Extends 
  Implements 
  Interface 
  Dynamic 
  Static 
  Public 
  Private 
  Get 
  Set 
  Import 

  ActionScript 2.0 on the attention of language matters, including the following: 

  1. Use ActionScript 2.0 language class or interface definition scripts must be preserved for external script file, and each script can define a category.    In other words, not in the class action panel and interface definition. 

  2. Be implicit (to store them in the overall or documents specified in the search path designated location and then use them in the script) or explicit (use of import orders) into one class files.    Wildcards can be used import package (a directory of documents in the collection). 

  3. Flash 6 or higher version of the player supports moves by 2.0 scripting language development applications. 

  4. Flash MX 2004 to create a new document issued the default settings are ActionScript 2.0 language.    If you plan to amend the existing FLA file, the use of ActionScript 2.0 language syntax, please ensure that the release of the FLA file settings specified in the language ActionScript 2.0.    If you do not specify, the paper will not be able to correct compiler, although Flash will not have a compiler error. 

Related articles:

HTML CSS norms
  / / General    This instruction is a development of norms, is a scripting language reference, this is not a static norms must strictly abide by the provisions of special circumstances to flexibility in the use of some sort of modifications.    However, we must not arbitra...
Based on AJAX technology validation framework Struts
  Author: Shuxianzhong compiler | Source: 天极java | Original Address | 2006-4-20    天极horizon: AJAX Web development of the new darling    Abstract real-time data validation AJAX is one of the most important advantages of technology, check Struts framework by adding this te...
How can we join Google my site?
  Under normal circumstances, Google's machines automatically to the vast network sea search the Web, will be collected in the database website.    If your website has not been in Google's database, the machine may be Google has not found it, you can think of ways to their own...
CSS achieve dynamic display by the five-pointed star-level results
  Perhaps you see above this paragraph some Shengse, no, let us have a look at css code solution    <ul Class="star-rating">    <li Class="current-rating"> Currently 3.5 / 5 Stars. </ Li>    <li> <a Href="#&qu...
Using xml, xsl, css display data
  / * Xsl data file * /    <? Xml version = "1.0" encoding = "GB2312?">    <xsl:stylesheet Xmlns:xsl=" http://www.w3.org/TR/WD-xsl ">    <xsl:template Match="http://www.blogchinese.com//">  <HTM...