
Here's what I did: I made a new MovieClip ( Insert > New Symbol) and drew 2 horizontal lines and 2 vertical lines of length 300px. You can be as creative as you want, but make sure the lines do divide the stage into 9 equal blocks. By tile I mean one of the nine places where you can put an O or X (or an image of a flower, your pet, a logo, you name it). The last file, Tile.as, we'll be using to create a (you guessed it), tile. In this case, the computer must play as player two. we'll start off with 2, but later on we also want to write functionality for when there is only one player. This is also why we ask for an argument "num" this will define the number of human players. The menu will have only two buttons, one player or two players. The TicTacToe.as file will handle our menu functionality, which we'll write at the end of this tutorial (it's more fun to get a working game as fast as possible, right?).
#TIC TAC ATTACHMENT DOWNLOADER MOVIE#
When you test your Flash movie ( Control > Test Movie), you will see a stage with a black background and "TicTacToe" in the Output screen ( Window > Output). We now have four files in our project folder: one. Not sure what this means? Read this quick introduction to document classes. The first class, TicTacToe.as, will be our document class. So the TicTacToe class you save as "TicTacToe.as", etc. Write the following code and save the files under the same name as the class name. as files, which we also save in our project folder. Next, we'll set up the AS3 files which we'll be using. Desktop\MyFirstGame\) as "TicTacToe.fla". Now save the file in your project folder (e.g. In the properties ( Window > Properties), fill in "TicTacToe" as the class definition.

Set the stage's dimensions to 300x300 and use a black background. We'll begin by creating a new Flash file ( File > New > Flash File (ActionScript 3.0)).
