Programming a quick-quiz Module providing an introduction to Actionscript and how to create a quick true-false quiz by editing existing code. Covers Arrays and Variables, building confidence to delve deeper into Actionscript code.
This Flash module is an ideal introduction to Actionscript programming helping you create your own true-false quiz.
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!
You will work using the ActionScript editor in Flash. Study the image below and then try to get 100% in the match-up challenge.
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.
Consider the following questions:
In your opinion, what should a computer quiz do?
Can't we just type questions and answers into text boxes and display them on the screen?
What 'added value' does Flash offer? Why not just print questions on paper?
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:
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: