11

Trivia Quiz Game Built Using Components

Introduction

This game demonstrates the use of Flash MX components to build a multiple choice trivia quiz. The game loads the questions from an external file, with each question having three possible answers. Radio buttons, push buttons and scroll bars are used to construct the interface for the game. XML is used to import the questions.

Building the Game – Game Structure and Title Page

First we need to create the background for the quiz and the structure for the way the game will work. First, name the bottom layer “Background” and place the “Background” asset from the library onto the stage. This forms the backdrop for the game. You can download a copy of the final FLA from www.sprite.net/understanding ...

Get Understanding Flash MX 2004 ActionScript 2 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.