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.

37 " has been set <strong>to</strong> " + score);<br />

38 rs.Close();<br />

39 conn.Close();<br />

40<br />

41 %><br />

Listing 21.9<br />

Accessing the high score table<br />

Figure 21.7 The high score table<br />

Chapter 21: High score tables<br />

When the ‘View Scores’ but<strong>to</strong>n is pressed in the ‘highscores.fla’ project the following code is<br />

executed. The game name is derived from the selected radio but<strong>to</strong>n and this is sent <strong>to</strong> the ASP<br />

page ‘gethighscores.asp’.<br />

1 on (release){<br />

2 var i, game=0, score;<br />

343

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

Saved successfully!

Ooh no, something went wrong!