By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,144 Members | 880 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,144 IT Pros & Developers. It's quick & easy.

Creating quiz in Flash using XML - Help me

NoPeasHear
P: 23
I don't know what I am doing wrong...

I used this tutorial...
http://www.permadi.com/tutorial/flashMXQuiz/index.html

It works with their quiz.xml file, but when I add an option for multiple correct answers, the results page always gives me a response of 0.

What would I change from the tutorial to have multiple correct responses reflect in the results?

Expand|Select|Wrap|Line Numbers
  1. <?xml version="1.0"?>
  2. <!DOCTYPE quiz [
  3.     <!ELEMENT quiz (title, items)>
  4.     <!ELEMENT title (#PCDATA)>
  5.     <!ELEMENT items (item)+>    
  6.     <!ELEMENT item (question, answer, answer+)>
  7.     <!ELEMENT question (#PCDATA)>
  8.     <!ELEMENT answer (#PCDATA)>
  9.     <!ATTLIST answer correct (y) #IMPLIED>
  10. ]>
  11. <quiz>
  12.     <title>Adult Self-Report Scale (ASR-v1.1)</title>
  13.     <items>
  14.         <item>
  15.             <question>How often do you have trouble wrapping up the final details of a project, once the challenging parts have been done?</question>
  16.             <answer>Never</answer>
  17.             <answer>Rarely</answer>
  18.             <answer correct="y">Sometimes</answer>
  19.             <answer correct="y">Often</answer>
  20.             <answer correct="y">Very Often</answer>
  21.         </item>
  22.         <item>
  23.             <question>How often do you have difficulty getting things in order when you have to do a task that requires organization?</question>
  24.             <answer>Never</answer>
  25.             <answer>Rarely</answer>
  26.             <answer correct="y">Sometimes</answer>
  27.             <answer correct="y">Often</answer>
  28.             <answer correct="y">Very Often</answer>
  29.         </item>        
  30.         <item>
  31.             <question>How often do you have problems remembering appointments or obligations?</question>
  32.             <answer>Never</answer>
  33.             <answer>Rarely</answer>
  34.             <answer correct="y">Sometimes</answer>
  35.             <answer correct="y">Often</answer>
  36.             <answer correct="y">Very Often</answer>
  37.         </item>        
  38.         <item>
  39.             <question>When you have a task that requires a lot of thought, how often do you avoid or delay getting started?</question>
  40.             <answer>Never</answer>
  41.             <answer>Rarely</answer>
  42.             <answer>Sometimes</answer>
  43.             <answer correct="y">Often</answer>
  44.             <answer correct="y">Very Often</answer>
  45.         </item>        
  46.         <item>
  47.             <question>How often do you fidget or squirm with your hands or feet when you have to sit down for a long time?</question>
  48.             <answer>Never</answer>
  49.             <answer>Rarely</answer>
  50.             <answer>Sometimes</answer>
  51.             <answer correct="y">Often</answer>
  52.             <answer correct="y">Very Often</answer>
  53.         </item>        
  54.         <item>
  55.             <question>How often do you feel overly active and compelled to do things, like you were driven by a motor?</question>
  56.             <answer>Never</answer>
  57.             <answer>Rarely</answer>
  58.             <answer>Sometimes</answer>
  59.             <answer correct="y">Often</answer>
  60.             <answer correct="y">Very Often</answer>
  61.         </item>                        
  62.     </items>
  63. </quiz>
  64.  
Oct 12 '06 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.