Topic outline

 
Programming a quick-quiz

This Flash module is an ideal introduction to Actionscript programming helping you create your own true-false quiz.

2

Your task is to create your own four question quiz making use of Arrays and other Actionscript techniques.
 
1
Introduction

In this module you will program a simple quiz using an Array to store your question data. This all sounds terribly complex but really isn't!

Actionscript


You will work using the ActionScript editor in Flash. Study the image below and then try to get 100% in the match-up challenge.


Actionscript example




  • EffectiveICT.co.uk

Show only topic 1
2
Understanding Arrays

  • As you've hopefully found out, this exercise asks you to use something called an 'Array'. The Array contains the data for our quiz.
  • An Array is useful because we can add code to mess about with our questions. We can sort, edit, remove and jumble up the question data.

Array details


Consider the following questions:

  1. In your opinion, what should a computer quiz do?

  2. Can't we just type questions and answers into text boxes and display them on the screen?

  3. What 'added value' does Flash offer? Why not just print questions on paper?

  4. Who cares about the benefits of using an Array - why are they worth bothering with for an interactive quiz?


Are you sure you've thought about the questions above?
Prove it by getting 100% in this quiz:



  • EffectiveICT.co.uk

Show only topic 2
3
Developing a quiz using Actionscript

This section helps you edit and develop an Array. You will edit some existing Actionscript code and then start adding your own to construct your own customised quiz.

Load the starter template (.fla file) and follow the guidance below:
Show only topic 3
4
Developing your quiz further

Having developed your own quiz, you now need to extend your work further to create something like this example:



Show only topic 4
5
Conclusion / Plenary

Flash geek or genius?
  • Can you explain why an Array is useful?
  • Were you able to create your own quiz with random questions?
  • In what ways is your finished quiz a good example of e-learning?
Show only topic 5