02.02.2013 Views

Flash MX 2004 Games : Art to ActionScript

Flash MX 2004 Games : Art to ActionScript

Flash MX 2004 Games : Art to ActionScript

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 13: Small games <strong>to</strong> keep them loading<br />

wish. There is no checking involved in the game; I leave you <strong>to</strong> do this enhancing. But there is an<br />

Answers but<strong>to</strong>n that populates the crossword with the correct answer. After doing this, the but<strong>to</strong>n<br />

becomes a Clear but<strong>to</strong>n so that the player can try again. The code for the Answers but<strong>to</strong>n is fairly<br />

straightforward:<br />

1 on (release){<br />

2 if (answerbut<strong>to</strong>ntext == "Answers"){<br />

3 for (row=0; row

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!