Creating more classes
Do you remember the creation of the Concentration game, when I told you to ignore the alert saying "A definition for the document class could not be found in the classpath, so one will be automatically generated in the SWF file upon export."?
You can keep ignoring it, but this time you will create the famous "definition for the document class", that is a file like
Main.as, with the class relative to
Delete these two lines from
placeBoard function, as we will position
board object in its own class.
Test the movie and you will see the board aligned with the upper-left corner of the stage. That's ok because you just removed
connect4.fla, create a new ...