473,396 Members | 1,714 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,396 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
1 2639
Flash and quiz.xml file \

All the files involved are located at the link above.
Oct 13 '06 #2

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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.