471,081 Members | 1,164 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,081 software developers and data experts.

Creating quiz in Flash using XML - Help me

I don't know what I am doing wrong...

I used this tutorial...

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>
Oct 12 '06 #1
0 4393

Post your reply

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

Similar topics

2 posts views Thread by Sketcher | last post: by
5 posts views Thread by Vandana Rola | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.