Creating an interactive multiple-choice quiz in Adobe Flash CS4

By Sambrena Software, Adobe Flash Add a new comment

Want to create an interactive drop-down multiple-choice quiz in Adobe Flash? This tutorial shows you how.

Step 1 - Create a new document
a. Choose File > New.
b. In the New Document dialog box, selcet Flash File (ActionScript 2.0) and then Click OK.

Step 2 - Document settings
Right-click on the stage, select Document Properties. The Document Properties dialog box displays the current Stage size setting as 550 × 400 pixels, and the Background color swatch is set to white. You can change the size and color of the Stage as you want.

Adobe flash - document properties

Step 3 - Import image to the stage
Choose File > Import > Import to Stage, and then select the image you want. You also could click Ctrl+R to import image.

Step 4 - Add the multiple choice question to the Stage
a. Select the Text tool (T).
b. In the Property inspector (Window > Properties), select Static Text type to specify the type of text field, and then input the question " What was Michael's first song to air on MTV? ". You also could set the font size, family and color of the text.

Step 5 - Add ComboBox component
a. Select Window > Components.

Adobe flash component

b. Double-click ComboBox in the Components panel.
c. Select the component on the Stage, and name the instance name as box in the properties panel.

Adobe flash properties panel

Step 6 - Add answer options
a. Select Window > Component Inspector. On the Component Inspector, click data, then the Value dialog box appears.

adobe flash data

b. Click + to add answer options, and then replace the defaultValue as answer options, here the options are: thriller, billie jean, bad and the way you make me feel. After that, click OK.

c. On the Component Inspector, click labels, then the Value dialog box appears. Please following the same steps above to add the values by adding the + button.

Step 7 - Add submit button
a. Select Window > Common Libraries > Buttons, then the Libraries buttons dialog pop up.
b. Choose a button and drag it to stage.

c. Double-click the button, and then rename the button as Submit. You also could set the size of the button at the Properties panel.

Step 8 - Insert a keyframe and delete the elements on the frame

Step 9 - At keyframe 2, insert a dynamic text box
a. Select the Text tool (T).
b. In the Property inspector (Window > Properties), select Dynamic Text type.
c. Draw a rectangular text box, this is the feedback area when quiz-takers choose the right or wrong answer.
d. Select the rectangular text box, and input jg to the Variable box at the Properties panel.

Step 10 - At At keyframe 2, add Back button
Just follow the same steps at step 8 to add button rename the button as Back.

Step 11 - Open the Action panel and add scripts
a. Add scripts to Back button. Click the Back button, input the following scripts:
on (release) {
gotoAndStop(1);
jg = ""; }

b. Add scripts to Submit button.Click the Submit button, input the following scripts:
on (press) {
if (box.getValue() == "billie jean") {
jg = "Sorry, wrong answer! Please select again!";
}
if (box.getValue() == "bad") {
jg = " Sorry, wrong answer! Please select again!";
}
if (box.getValue() == "the way you make me feel") {
jg = " Sorry, wrong answer! Please select again!";
}
if (box.getValue() == "thriller") {
jg = "Congratulations! Triller is Michael's first song to air on MTV";
}
gotoAndStop(2);
}
c. Add scripts on frame 1. Click frame 1, input the following scritps:
stop();

Step 12 - After these steps, the question is created. You could follow these steps to create more multiple choice questions

There are also 3rd party quiz makers, like Wondershare QuizCreator that can make the job easier.

    Add a comment

    Post a comment using one of these accounts
    Or join now
    At least 6 characters

    Note: Comment will appear soon after you have activated your account.
    Obscene/spam comments will be removed and accounts suspended.
    The information you submit is subject to our Privacy Policy and Terms of Service.

    ITworld LIVE

    SoftwareWhite Papers & Webcasts

    White Paper

    Best Practices Guide: Microsoft Exchange 2010 on VMware

    This guide provides best practice guidelines for deploying Exchange Server 2010 on vSphere.

    White Paper

    Free Trial: vRanger, the Powerful VMware Recovery Solution

    When disaster strikes, don't waste hours and dollars recovering critical data. vRanger delivers blazing-fast speed and granular recovery for your VMware applications and data. Get your free trial today.

    White Paper

    Executive Guide to Business and Software Requirements

    This paper is designed as an executive briefing on the issues surrounding business and software requirements. It features a wealth of statistics and tactics to help you get requirements right, and includes a tear-out single page summary.

    White Paper

    How to Launch a Successful IT Automation Initiative

    Corporations across all industries are under increasing pressure to cut costs and work more efficiently. In the race to meet both of these requirements, many organizations turn to technology, often purchasing and installing disparate pieces of software in hopes of achieving efficiencies not afforded by manual systems.

    White Paper

    Why Corporations Need to Automate IT Systems Management

    With corporate budgets being slashed and leaders expecting more out of their employees, companies are forced to do more with less, yet are still expected to provide the highest quality experience to customers. This is pushing them to make better use of their IT assets without breaking the budget. Companies are under more pressure than ever, thanks to data management regulations; increasingly complex security threats; and growing demand from management and end users for 24/7 uptime and high performance. These hurdles require a strategic investment in technologies that boost efficiency, save money and position IT as an integral part of the entire firm's operations. IT systems management is helping corporations fill these gaps.

    See more White Papers | Webcasts

    Ask a question

    Ask a Question