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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 14: Quizzes<br />

For now we will assume that the server is local <strong>to</strong> your machine and that you are logged on as<br />

administra<strong>to</strong>r. Right-click on the ‘Database’ folder and choose ‘New Database’. For the examples<br />

in this chapter I have created a database called ‘a2a’.<br />

Figure 14.2 Creating the database, stage 1<br />

By default the files for the database are s<strong>to</strong>red in the ‘C:\Program Files\Microsoft SQL<br />

Server\MSSQL\Data’ folder. Each database uses two files, the data file and the transaction log.<br />

You can change the path <strong>to</strong> these files using the Database Properties dialog that is opened when<br />

you create a database.<br />

Creating a user for the database<br />

Having created the database we will now create a user. In this example the user is called ‘quiz’<br />

and has access via SQL Server Authentication using a password. To create a new user expand<br />

the database folder and select the newly created database ‘a2a’, if you are following the example.<br />

Expand the ‘a2a’ folder and right-click on Users, select ‘New Database User...’ from the context<br />

menu. This brings up the dialog box that you can see in Figure 14.5.<br />

207

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

Saved successfully!

Ooh no, something went wrong!