|
|||||||||||
|
|||||||||||
A basic tutorial for importing images,
and adding objects to an Adobe flash file. |
|||||||||||
(page 1) |
|||||||||||
January
4, 2009 |
|||||||||||
page 1, page 2, page 3, page 4, page 5 | |||||||||||
In part I of this tutorial we created a skeleton project in Adobe's flash authoring tool, and added a script, of type ActionScript 3.0, and tested the flash movie file output. Here we will import a couple of image files, convert them into symbols, and add some code to manipulate the objects. There are a couple of paths to take to accomplish this, and each method is similar. One method will allow you to control a symbol (MovieClip, Sprite, etc.) that is placed onto the stage via the authoring tool, but without the need to create an actionscript file that defines it. While the other method will allow you to control a symbol via a script file, although, the symbol itself may not be placed on the stage. The script file is written in a language defined by ActionScript 3.0 (resembling C++), and it describes the symbol's control with a Class structure that contains member variables and member functions. The following are outlines of the two possible methods:
The rest of this article describes the above two methods in
|
|||||||||||
|
|||||||||||