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.

<strong>Flash</strong> <strong>MX</strong> <strong>2004</strong> <strong>Games</strong><br />

16<br />

17 conn.Execute(sqlStr);<br />

18 conn.Close();<br />

19<br />

20 Response.Write("questionDeleted = true");<br />

21 %><br />

Listing 14.3<br />

Deleting an entire category<br />

For convenience another ASP page deletes an entire category. This is done in the same way as<br />

deleting a single question, except multiple records can be deleted. The code for this is in the file<br />

‘Examples\Chapter14\scriptsJS\deleteCategory.asp’.<br />

1 <br />

2<br />

3 <br />

13 <br />

14 <br />

Listing 14.4<br />

Accessing a category<br />

The input engine will require data from the records in a category. So that the user can access an<br />

entire category the script ‘Examples\Chapter14\scriptsJS\getCategory.asp’ was included. Here a<br />

connection is made <strong>to</strong> the database in the usual way and the variable ‘category’ is tripped from<br />

216

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

Saved successfully!

Ooh no, something went wrong!