Create a new file (File | New) then from New Document window select Actionscript 3.0. Set its properties as width to 640
px, height to 480
px, background color to #000033
(a dark blue), and frame rate to 30
. Also define the Document Class as Main
and save the file as bejeweled.fla
.
We are using two objects: one with seven frames containing all gems, called gem_mc
, and one for the square that will indicate the gems we are selecting, called selector_mc
.
All assets will be drawn with registration point at 0,0 and designed to fit in a 60x60 tile.
In bejeweled.fla
, create two new Movie Clip symbols and call them selector_mc
and gem_mc
. Set them as exportable for ActionScript and leave all other settings at their default values, just like you did in previous chapters.
Then draw something like this:
In the upper left corner you can see selector_mc
, while the remaining pictures represent the seven gems used in the game.