I’m creating a board game in AS3 for a Uni project. I was wondering if someone could tell me the best method for creating a 15×15 board of squares on the stage? I want to be able to add a mouse rollover effect on the squares. Also when a player clicks on the board their counter will be placed on that square.
Share
This is pretty basic problem. Two dimensional board = you will need to use two loops one inside of other.
That way you will have positioned tiles and two-dimensional array where you can access them. You can add listeners just after creating them.
Edit: Flash Professional version:
That should work with FP, I checked this.