473,396 Members | 2,147 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

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 [
<!ELEMENT quiz (title, items)>
<!ELEMENT title (#PCDATA)>
<!ELEMENT items (item)+>
<!ELEMENT item (question, answer, answer+)>
<!ELEMENT question (#PCDATA)>
<!ELEMENT answer (#PCDATA)>
<!ATTLIST answer correct (y) #IMPLIED>
]>
<quiz>
<title>The Quiz</title>
<items>
<item>
<question>In which continent is the country Japan located?</question>
<answer correct="y">Asia</answer>
<answer>Europe</answer>
<answer>Africa</answer>
<answer>America</answer>
</item>
<item>
<question>Which one cannot swim?</question>
<answer>Tuna</answer>
<answer correct="y">Cow</answer>
<answer>Whale</answer>
<answer>Lobster</answer>
</item>
<item>
<question>How many points are on a hexagon?</question>
<answer>5</answer>
<answer correct="y">6</answer>
<answer>7</answer>
<answer>8</answer>
</item>
<item>
<question>What is 2x(3x10+10)</question>
<answer>60</answer>
<answer>30</answer>
<answer>50</answer>
<answer correct="y">80</answer>
</item>
<item>
<question>What does "html" stands for</question>
<answer correct="y">Hypertext Markup Language</answer>
<answer>Hyper Tool Marker Language</answer>
<answer>Homepage Text Mini Language</answer>
<answer>Hypertranslation Micro Language</answer>
</item>
<item>
<question>Which one is incorrect?</question>
<answer correct="y">2 is larger than 3</answer>
<answer>Fish can swim</answer>
<answer>Human can breathe and eat and sleep and walk</answer>
<answer>The first letter on the English alphabet is the letter "A"</answer>
</item>
<item>
<question>Which one is not a primary color?</question>
<answer>Gray</answer>
<answer>Rose</answer>
<answer>Pink</answer>
<answer correct="y">All of the above</answer>
</item>
<item>
<question>Consider this. If a number is divided by a number which is equal to that number, what will the result be?</question>
<answer correct="y">1</answer>
<answer>0</answer>
<answer>The same number</answer>
<answer>-1</answer>
</item>
<item>
<question>Which color has the longest name?</question>
<answer>Red</answer>
<answer>Yellow</answer>
<answer correct="y">Magenta</answer>
<answer>Cyan</answer>
</item>
<item>
<question>Which country is located in the European continent?</question>
<answer>Australia</answer>
<answer>Japan</answer>
<answer correct="y">Great Britain</answer>
<answer>Brunai</answer>
</item>
</items>
</quiz>
Nov 3 '06 #1
0 2980

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

Similar topics

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
NoPeasHear
by: NoPeasHear | last post by:
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...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.