Unit 18 Test. ActionScript 2 Examples

Only one answer is valid for question. Click on the answer that you consider to be correct.
Answer on all the questions and click on the button Correct to see the solution.
If you press Restore you can repeat the evaluation.

1. In spite of the power of movie clips, it is common that the ActionScript code influences them; there would be calls or modifications of its properties made from other objects or from the main movie itself.

a) True.

b) False.

2. The LoadMovieNum function can load any type of file, image (JPG, BMP, GIF...), movie (SWF, AVI...), text etc.

a) True.

b) False.

3. The action executed from inside of a button:

on (release) {
r1.gotoAndPlay(2);
}

takes us to the frame 2 of the main movie.

a) True.

b) False.

4. It's a good habit to look for ActionScript code done by other Flash experts through Internet, study, learn, and adapt it to our necessities if this is possible.

a) True.

b) False.

5. Which of these 3 affirmations is correct?

a) The "round" method of the Math object generates a rounded and random number between 0 and 46550.

b) The function "bytes_total " gives back to us the total bytes taken by a movie.

c) The function "max(5,2)" gives back to us the maximum value between 5 and 2, this is, number 5.

6. Which of the following sentences would give back us the percentage of Bytes loaded until the moment in a Flash movie?

a) percentage = getBytesTotal();

b) percentage = ((bytes_loaded / bytes_total)*100);

c) percentage = ((getBytesLoaded() / getBytesTotal())*100);

d) percentage = getBytesLoaded() / 100;




     

Pág. Ev.
18.1

Legal warning: Authorised on-line use only. It is not allowed the use of these courses in companies or private teaching centres.
© aulaClic. All rights reserved. Reproduction in any form whatsoever is prohibited.
November-2005.