|
Unit 17. Introduction to ActionScript 2 (I) |
|
What is the ActionScript? |
|
However, in these two themes we are only going to see a small introduction to ActionScript that will serve to set the bases that will allow us to begin working with ActionScript. Teachinfg programming with ActionScript would require another complete tutorial. Refining the understanding of this language is up to the reader. We recommend to follow the wonderful Help included in Flash MX 2004. All that belongs to this chapter makes reference to 2nd version of ActionScript, the latest version of this programming language presented by Macromedia and later incorporated in Flash MX 2004.
General characteristics of the ActionScript
We
are going to see many of these functions in this tutorial, but before we recommend
to assimilate well certain concepts related to programming. For it, take look
our basic theme |
|
The Actions Panel is divided in 2 parts, on the left we have a help facilitated by Flash that gives us access fastly and very comfortably to all the actions, objects, properties etc... that Flash has predefined. These elements are divided in folders, that contain more folders classifying effectively everything what Flash places at our disposal. To insert them in our script it will be enough to double click the chosen element. Later we'll see in detail the different elements from this Panel.
On the right side we have the space to place our script, here will appear what we are inserting. It also includes utility tools, like the search of words, the possibility of inserting break points, the tool to Review Syntax and the Flash help for ActionScript. |
|
The Actions Panel of Flash MX 2004, in contrast, to the one Flash MX one, has only an edit mode, that has much more in common with the Expert Mode of Flash MX than with the Normal Mode. Given that Flash MX 2004 has eliminated the Normal Mode of edition of scripts, the most inexperienced users will not have the help that provided this work style, and they will have to use the only existing panel. The Actions Panel is, therefore, appropriate when we already have experience with programming with ActionScript, usually when we don't comment syntax errors and know well the Actions and Options that Flash provides us with. This
freedom type is total and therefore, it is also the possibility of commenting errors
to ensure that our script is correct, while entering Expert Mode an icon will appear
as: It is a common error to waste hours looking why our movie is not working correctly while the reason is that a syntax error disabling all the code existing in a frame, that acts like if there were no CODE in it. Let’s keep in mind this and review the code conscientiously. |
|
|
![]() |
| |
|
Legal warning: Authorised on-line use only. It is not allowed the use of these courses in companies or private teaching centres.
|