As shown in Figure 1. The most significant change in this version is the increased support for ActionScript 3.0, which has no changes compared to flash 8. Flash 9 Preview only provides us with a ActionScript 3.0 development environment, and I believe there are more changes and new features in the official edition. In this article, we'll take a look at the new features of compiling ActionScript 3.0 using the Flash 9 preview.
Figure 1
First, new features
Using the Flash 9 preview allows us to compile ActionScript 3.0 scripts that are included or imported into a FLA file to interact with the scene content by adding scripts that are directly added to the keyframe or associated with the library file. A virtual machine (AVM) was added to the simultaneous release of Flash Player 9, which is said to be 10 times times faster than traditional ActionScript code.
Now we can use the Flash 9 preview or Flex Builder to create the edit AS3.0, in Flash 9 you can create a timeline based ActionScript 3.0 document and be able to use some of its features, For example Flash.display.MorphShape class, Abobe.utils package,static text fields,scenes and so on.
In the Flash 9 preview we can find the following new features:
1, Add document class function to realize the separation of interface and code
In Flash 9, a new feature called document class was introduced to define the classes associated with the main timeline. We can no longer write the as code to the timeline, but rather save it as a separate as file, really realize the separation of the interface and code, which has to say that this is a revolutionary innovation. As we initialize the main timeline, Document class has already been created. If you want to set the document class property, you can set it in the file's properties panel or ActionScript 3.0 publishing Settings panel, or execute the File/publish settings menu command, and in the Publish Settings dialog box, select Flash tab, select the ActionScript option to ActionScript 3, and then click the "Settings ..." button to open the ActionScript 3.0 Property Settings dialog box, as shown in Figure 2.
Figure 2 [+ enlarge picture ]
In the ActionScript 3.0 Settings dialog box, you can enter the as3.0 document name directly in the Documents Class option, click the plus sign in classpath to increase the directory where the as file is located, click the minus sign to delete the directory, click Browse to Path allows you to browse the directory where the as file resides.
2, Symbol-class linkage (component) Properties
In the Flash 9 Preview, the link for components and classes no longer requires an ID, and we can specify a specific class name for the component, as shown in Figure 3.