471,081 Members | 655 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 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>
<title>The Quiz</title>
<question>In which continent is the country Japan located?</question>
<answer correct="y">Asia</answer>
<question>Which one cannot swim?</question>
<answer correct="y">Cow</answer>
<question>How many points are on a hexagon?</question>
<answer correct="y">6</answer>
<question>What is 2x(3x10+10)</question>
<answer correct="y">80</answer>
<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>
<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>
<question>Which one is not a primary color?</question>
<answer correct="y">All of the above</answer>
<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>The same number</answer>
<question>Which color has the longest name?</question>
<answer correct="y">Magenta</answer>
<question>Which country is located in the European continent?</question>
<answer correct="y">Great Britain</answer>
Nov 3 '06 #1
0 2899

Post your reply

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

Similar topics

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.