PDA

View Full Version : secure quiz application


kekslord
10-16-2008, 12:04 PM
Hi there,

I am totally new to ActionScript and would like to know if Flash + ActionScript can help me solve the following problem.
I have to develop a quiz application, which shall be used by our professors to provide the students with exercises. That shouldn't be a problem... but...
One of the professors would like to use the application for small exams, therefore it mustn't be possible to switch between windows. Is it possible to react with ActionScript if the user closes/minimizes the window with the quiz application?
It needn't be 100% secure, but it should not be so easy to open a web browser and surf to wikipedia to look up the solution.
I have no idea how to fulfil this requirements. Do you have a idea? :confused:

Thanks a lot

kekslord

raydowe
10-16-2008, 02:32 PM
There isn't really an easy way to achieve what you are looking to do.

One thought I had is utilizing the fullscreen mode. You could have a listener wait to see when the application goes fullscreen and then begin the quiz. Another listener would wait for the application to exit fullscreen, and automatically lock, submit, or count the number of times the user has done this. The only way to exit fullscreen is to change focus (ALT-Tab, click a window on a second monitor) or press escape, so that would keep people from doing other things. However, input text fields do not work in fullscreen so this would have to be a multiple choice quiz.

The solution is not ideal, but it's the best i can think of.

SergeantFlash
10-16-2008, 11:41 PM
Everything works exactly the same in full screen mode as it does in normal mode.

raydowe
10-16-2008, 11:51 PM
http://www.adobe.com/devnet/flashplayer/articles/full_screen_mode.html
Under security, bullet point #4

Unless this has changed in flash player 10, which I have yet to hear

SergeantFlash
10-18-2008, 02:44 AM
Whoops, you're right, input text fields don't work online when in full-screen mode (for Flash Player 10 too, just checked).