# XML Quiz with correct answers, Array HELP Needed!

**URL:** <https://forum.kirupa.com/t/xml-quiz-with-correct-answers-array-help-needed/288614>\
**Category:** flash\
**Created:** [May 18, 2009, 10:13pm UTC](https://forum.kirupa.com/t/xml-quiz-with-correct-answers-array-help-needed/288614 "2009-05-18T22:13:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Terraform](https://avatars.discourse-cdn.com/v4/letter/t/ed8c4c/32.png) [@Terraform](https://forum.kirupa.com/u/Terraform)\
**Post date:** [May 18, 2009, 10:13pm UTC](https://forum.kirupa.com/t/xml-quiz-with-correct-answers-array-help-needed/288614/1 "2009-05-18T22:13:01Z")

</div>

Hey

I am needing to put together a really simple flash Quiz for this project I am working on  
and I am having a hell of a time figuring out a few key aspects.

I have done and “modified” a really nice tutorial an the Flash and Math site.

but there are 2-3 things in particular that I can not figure out how to do.

1. when working with an array and an xml file, how can I assign the “correct” answer if a user selected the wrong option.  
ideally I would love it to say for example " sorry, Egyptians was the correct answer" but would settle for " sorry, 3 was the correct answer"  
if that is easier to arrange within an array.

2. how can I make it so it marks your first answer and only your first answer (as opposed to how it is now where if you guessed wrong you can keep on guessing  
until it is right and it will notice the right answer and ignore the wrong)?

I think those are the 2 major things I could really use some help with.

sorry this whole way of thinking is new to me  
I have been struggling to learn how to build visually based sites. when this task came in front of me  
and I really know very little about this “game” type of thinking much less in an xml context

thanks for your help.

files attachedhere

> **[SHAWNCONVEY.COM](http://shawnconvey.com/)**
>
> Shawn spent a decade as a photographer in New York and Chicago before deciding to move abroad and concentrate on film. He settled in Bosnia and Herzegovina in search for a story that humanized the people and region, as opposed to perpetuating the...
