|
Projects -
Flash CS3
|
|
Written by drooza
|
|
Tuesday, 23 September 2008 19:02 |
|
Page 2 of 9 Maybe too much to soak in? If so, go back up and read it again. If you don't know what some of those things mean, there are plenty of sites out there that will help you further decipher the code. But if you read it slowly then it's just like reading English! Don't forget to read all the comments, it's pretty self explanatory. Now save this file as Tile.as in the same directory as our flash file. After we have to set the linkage for the library item named Tile in the flash file. 
As you can see in the picture, there are several frames 1-6 with the last frame blank with a flag on it. This flag is "blank". This could very well be redundant and left over from a previous method of removing the tile, but I digress. Notice that there is the Tile object in the library with the object registration on the top left of the rectangle (at the coordinates (0, 0)). Now on the library panel with Tile selected there's a small blue button with an italics i in the center next to the garbage can that brings up the symbol properties. If the advanced button isn't already clicked, do so! This will show the lower half of the Symbol Properties window where you can link a class to a library item. Once you click Export for Actionscript, Class and Base class should automatically fill in. At this point the we don't have to worry about the Tile object and class anymore, they are finished.
|
|
Last Updated ( Saturday, 22 November 2008 13:05 )
|