quiz_game final source

We want to create an application-quiz. There will be a sequence of multiple choice and at the end we will receive the response. We will load this information from an xml file, where we will store all the sequences of questions and the responses. we will use the library fuse to manage the animations, and try to give a natural interaction to the interface. The structure that we will develop will be in this way: a class called "quiz_intro", a class called "quiz" and a class called "quiz_page". we don't need anything else to realize our application. the class quiz will be the brain of the application. for brain i mean the object that organize all the operations in the application. the class quiz_intro manage the loading of the content and the start animation (like an enter button etc). the class quiz_page will display the questions items on the page and it will record the point for every question. So the Quiz class ... the famous brain i was talking about, start the application, and call the quiz_intro. when the quiz_intro have done is job,it will call again the Quiz class, that will launch the first page. And in a page, everytime you press next page, your will call again the Quiz class, that check which page is and is calling the next page. The Quiz page will display the response after the last question.

First thing, lets set the framework for our application.

framework

-create a directory called _project
-inside this dir create another directory called actionscript. we will put all the code of our application in this directory
-create a new flash file. save as quiz_main.fla
for the stage width:800 height:600 and 31 fps
-go in File>publish settings
-select "Flash" Tab
-press settings for action script
-add the directory actionscript in the path. in this way, we are telling to flash to consider this path like a place where we could store our classes. so we don't have to write actionscript in the path when we are giving a reference to a class.








copy the directory com that is in this zip file in the actionscript directory