473,327 Members | 2,094 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Creating quiz in Flash using XML - Help me

NoPeasHear
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
0 4562

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

Similar topics

2
by: Sketcher | last post by:
Hi, I am trying to create a quiz, Code is as follows: <html> <head> <title>Quiz</title> </head> <BODY> <Center><TABLE cellSpacing=3 cellPadding=0 border=0>
5
by: Vandana Rola | last post by:
Hello Everyone, I am a beginner in Javascript.I want to create fun quiz tool using javascript (no database). The feature of that tool is every question has five choices. The user needs to select...
0
by: dradhakr | last post by:
I need to put 5 question only,that's randomly in flash,how can i write script in flash <?xml version="1.0"?> <!DOCTYPE quiz > <quiz> <title>The Quiz</title> <items> <item>...
1
by: kixter1108 | last post by:
Hi guys! I'm seeking help in creating a quiz that would allow the user to change the questions/answers as an option on the interface itself. Is it possible? What database interconnection would be...
1
by: stevenjs | last post by:
Greeings, all, Flash 8 has quiz templates which are coded for multiple choice, true/false, text statement, and matching types of questions, along with hotspots and probably anoher type I am...
1
by: bikash607 | last post by:
Dear Expert, i m from very backward place in Bhutan and i need your assistance for a quiz program. I am trying to build a quiz program in Flash 6.0 and if you have any samples, please let me...
1
by: korr | last post by:
Hi there, i'm trying to develop a quiz in flash. Searching on the net, I found a quiz in flashkit from sephiroth.it by Alessandro Crugnola. His quiz has a script that puts the questions and the...
0
nomad
by: nomad | last post by:
Hello Everyone: I'm looking for a template or a website that will help me make/build a quiz. The quiz needs the following: 1. T or F, mulit. questions, click and drag answers. 2. Client must...
0
nomad
by: nomad | last post by:
Hello Everyone: Would like to know if this is possible. I have a client that want me to create a quiz which would be created in Flash and the data would be in XML. I can do that part, but the next...
1
by: Holly Six | last post by:
I have a quiz file using the e-learning and quiz components. There is a bug for one condition - the user takes the quiz and fails, click the retake button and passes. The score that is written to the...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.