473,785 Members | 2,789 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Creating quiz in Flash using XML - Help me

NoPeasHear
23 New Member
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 4579

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

Similar topics

2
2650
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
5758
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 three best choices. If they do, a message window pops up which says good choices or something and take them to next question. If they don't choose all of the best choices they get another message like try again but these are not the best choices...
0
2995
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> <question>In which continent is the country Japan located?</question> <answer correct="y">Asia</answer>
1
2281
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 used for this??? If I'm not mistaken, using XML would use hard coding, and that means going out of Flash and doing inputs using for example Dreamweaver..But is it possible to create a program with Actionscripts that would allow the user/administrator...
1
4463
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 forgetting. The test taker makes their selection(s) or answers, and clicks a "check answer" button. They then get a feedback statements depending on whether they have answered correctly or not. Many questions involve multiple selections to be correct, but...
1
1979
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 know....i will try my own but i didn't get any idea. Please help and I would remain thankful forever
1
3092
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 answers in random order. What i'm looking for is to not select the answers by clicking the mouse, but using the keyPress handler. Using the keyPress handler the script selects only the first answer I tried a lot but i didn't find any solution.. 2...
0
1482
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 register to take the test.also holds all results after taking the test. 3. Client must sign in to take the test 4. Quiz gives final score and a pass or fail I'm using Flash mx 2004. I know some PHP, SQL and XML. thanks
0
1747
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 step I'm not to sure about. 1. How so I get the test results to db (DB would be in sql) 2. Can I use PHP and XML together. The PHP would be use to information like: Students name, status of on-line class taking, test results, certificate of...
1
2538
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 lms is the original failure. I have tried calling "QuizTrack.initStartQuiz()" on frame one as well as resenting all the scores - total_correct, total_wrong, and percent_correct. On the last frame I have tried adding into my regular fscommand entries...
0
9645
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9480
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10327
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10151
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9950
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7499
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4053
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2879
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.