Chapter 17

17.1

State whether each of the following is true of false. If false, explain why.

a) ActionScript 3.0 is an object-oriented scripting language that contains functions and classes.

True.

b) There can be multiple instances of one symbol.

True.

c) Locking a layer is the same as hiding it, except that a hidden layer can still be edited.

False. Neither locked nor hidden layers can be edited. Locked layers asre visible, though, whereas hidden layers are not.

d) New functions can never be created in Flash. We must rely on Flash's predefined functions.

False. New functions can be created inside a package, or inside a frame's Actions using the keyword function.

17.2

Fill in the blanks for each of the following statements.

a) Property stage accesses the main timeline object.

b) A movie clip with no animation in its first frame appears as a(n) small white circle.

c) Flash has built-in collision detection function that returns true when two objects touch.

17.3 HTML

17.3 Flash

17.4 HTML

17.4 Flash

 

17.5 HTML

17.5 Flash

17.6 HTML

17.6 Flash

 

 

17.7

Give a brief description of each of the following terms:

a) Lock/Unlock

Locking a layer allows you to edit other layers on the same stage without affecting the locked layers by accident.

b) Instance

An instance is essentially a clone of a master object of which its properties are always identical to the master but can be affected as a separated entity on the stage.

c) Collision detection

A built-in function in Flash that can detect the boundaries of objects on the stage and return a result when those boundaries touch.

d) x and y

A variable value assigned to the two dimensional coordinate system on the plane or stage in which objects are placed in Flash which specify a distance from the top left corner.

e) Event handler

An event handler is a function that is called when an event happens which is specified in Flash.

f) Function

A function is a set of code designed to return a result as a result of being called by an event or a previous function to handle a set of data.


 

 

News:

Working on Chapter 18