Understanding the changes in the display API in ActionScript 3.0
|
|
|
|
| Articles Reviews Actionscript | |
| Written by Bill Lee | |
| Tuesday, 06 March 2007 | |
|
There are many differences between ActionScript 2.0 and ActionScript 3.0. This article focuses on the changes in the display API. In this article, I provide two very simple Adobe Flash files, one written in ActionScript 2.0 and the other written in ActionScript 3.0. Though these applications are very simple, you can use them to learn the basics of how the display API works in ActionScript 3.0. The article covers only the basics of the display API. If you need more information about it, please refer to the sources mentioned at the end of the article. The first section of this article shows you some simple code written in ActionScript 2.0 that draws a red rectangle and a text field. When you click the rectangle, the text field changes its text. In the second section, I rewrite this example in ActionScript 3.0—and, before I show you the code, I explain a little bit about the new concepts that ActionScript 3.0 uses. In this process, you will learn some basic ideas of how the display system works in ActionScript 3.0 A very simple example written in ActionScript 2.0
Take a look at the example written in ActionScript 2.0. The following script draws a red rectangle on the Stage: Powered by jReviews |
|
| Last Updated ( Thursday, 03 January 2008 ) | |
| < Prev | Next > |
|---|







