开发者

question pool based flash quiz

开发者 https://www.devze.com 2023-01-21 00:17 出处:网络
I want to build a flash based quiz app that will present users with questions and based on responses will pick next question from the pool. Any i开发者_如何学JAVAdeas on where to start?imho XMLList cl

I want to build a flash based quiz app that will present users with questions and based on responses will pick next question from the pool. Any i开发者_如何学JAVAdeas on where to start?


imho XMLList class is the best choice e.g.:

<?xml version="1.0" encoding="utf-8" ?>
<data>
    <question id="1" onright="2" onwrong="3" answer="4" text="calcutate 2*2"/>
    <question id="2" onright="4" onwrong="1" answer="25" text="calcutate 5*5"/>
    <question id="3" onright="2" onwrong="1" answer="yes" text="just mistyped?"/>
    <question id="4" onright="5" onwrong="?" answer="?" text="?"/>
</data>

it really depend on the quiz structure


I guess you need some kind of array.

It would contain the questions (accessed by an ID number) and answers. To each answer another question ID would be attached so that when the user answers with that answer, the question with specified ID would appear.

0

精彩评论

暂无评论...
验证码 换一张
取 消