MACROMEDIA FLASH 8-LEARNING ACTIONSCRIPT 2.0 IN FLASH Manual page 200

Learning actionscript 2.0 in flash
Table of Contents

Advertisement

3.
Select Control > Test Movie.
The Output panel displays the following text:
You got 11 out of 13 answers correct, for a score of 84.62%.
When you call
Math.round()
and is displayed in the Output panel. If you multiply the number by an additional 100,
before you call
Math.round()
number to 2 decimal places. This results in a more accurate score.
4.
Try changing the
the SWF file again.
If you are building a testing application, you might want to create a series of true/false or
multiple choice questions using the RadioButton and Label components. After users finish
answering each of the questions and click the submit button, you can compare their answers
to an answer key and then calculate their score.
200
Syntax and Language Fundamentals
in this example, the score rounds to the nearest integer (85)
, and then divide by 100, you can make Flash round the
variable to 3 and select Control > Test Movie to test
correctAnswers

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-LEARNING ACTIONSCRIPT 2.0 IN FLASH and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents