O'Reilly logo

Understanding Flash MX 2004 ActionScript 2 by Alex Michael

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required