|
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 8. 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 8, in contrast to the one Flash MX 2004 one, has two edition modes, so it has much more in common with the Expert Mode of Flash MX and its Wizard Mode. This
freedom type is total in the Expert mode 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. |
|
The uso of the Assist mode is much more simple. To use it press the Script Assist button and select the commands in the left that you want to include. Their options will be displayed on the right and you only will have to fill them in order of the command to work propperly. Even though it is recommendable to check the code so we get used to it and then will be a matter of time you could write your own code without the assistant. |
| |
|
Legal warning: Authorised on-line use only. It is not allowed the use of these courses in companies or private teaching centres.
|