Game Development Reference
In-Depth Information
All of our classes for the crossword puzzle engine are now
defined; let
s try it out. If you open the CrosswordPuzzle.fla in the
Chapter 9 folder, you will find the following code on the first frame.
var loader:URLLoader = new URLLoader(new URLRequest( " crossword.
xml " ));
loader.addEventListener(Event.COMPLETE, createCrossword);
var cp:CrosswordPuzzle;
function createCrossword(e:Event) {
cp = new CrosswordPuzzle(XML(;
cp.x = stage.stageWidth/2 - cp.width/2;
cp.y = cp.x;
Figure 10.5 The finished
crossword puzzle engine,
running with the sample
Search Nedrilad ::

Custom Search