# Random audio quiz with hot spot answer?

**URL:** <https://forum.kirupa.com/t/random-audio-quiz-with-hot-spot-answer/79662>\
**Category:** Uncategorized\
**Created:** [February 16, 2005, 3:13am UTC](https://forum.kirupa.com/t/random-audio-quiz-with-hot-spot-answer/79662 "2005-02-16T03:13:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![oddrhythm](https://avatars.discourse-cdn.com/v4/letter/o/e9c0ed/32.png) [@oddrhythm](https://forum.kirupa.com/u/oddrhythm)\
**Post date:** [February 16, 2005, 3:13am UTC](https://forum.kirupa.com/t/random-audio-quiz-with-hot-spot-answer/79662/1 "2005-02-16T03:13:39Z")

</div>

I’m an actionscript neophyte trying to do this on about 50 different lesson screens, each one with different content, but all using audio:

imagine 4 photos of animals on the stage(ie. dog, cat, lion, bird). When the user clicks a photo, the corresponding audio (bark.wav, meaow.wav, roar.wav, chirp.wav) plays…this i know how to do. Below is what i need.

When the user clicks ‘test me’, they hear a sound randomly chosen from the 4 sounds. If they click the right photo, then the user hears the next sound randomly chosen from the remaining 3 audio files which haven’t be heard yet…etc…etc. So the test gets easier through a process of elimination. If the user clicks the wrong animal, the audio repeats. The audio will repeat each time the user clicks the wrong photo. Some screens will have 6-8 photos and audio clips. Any help appreciated…
