Name:     ID: 
 
    Email: 

Game Programming - Flash MX 2004 Objects

True/False
Indicate whether the sentence or statement is true or false.
 

 1. 

An object is simply and entity that can have properties and methods attached to it.
 

 2. 

Objects can have types such as an Array, Number, TextField, and MovieClip.
 

 3. 

Flash does not give you the ability to create your own object type.
 

 4. 

You can create instances of global objects.
 

 5. 

An object that is used to create an instance of itself is called an instance object.
 

 6. 

Once an object has been used and there is no more use for it, you can free up memory by getting rid of the object using the ‘delete’ operator.
 

 7. 

The core objects are a group of objects that are requiered to meet the ECMA-263 standard.
 

 8. 

The Math object is not the only core global object.
 

 9. 

The String.indexOf Method searches a String for a specified substring. An index is given and the search begins there.  The method returns the index of the first occurrence of the substring.
 

 10. 

The function object is an object that allows you to encapsulate a function.
 

 11. 

The Key object is designed to help you monitor the user’s keyboard presses.  Each key on the keyboard is assigned a number, called a key code, and you can test to see if any key is currently pressed using its key code.
 

 12. 

The Key.isToggled Method tells you the state of the Caps Lock and Num Lock keys
 

 13. 

The media class deals with embedding audio and video into Flash and has no effect on using Webcams and microphones attached to the user’s computer.
 

Multiple Choice
Identify the letter of the choice that best completes the statement or answers the question.
 

 14. 

Customized objects are powerful because..
a.
they allow us to encapsulate all the methods and properties related to an element of our application into one place
c.
they allow us to encapsulate some of the methods and properties related to an element of our application into one place
b.
they allow us to encapsulate all the methods and properties related to an element of our application into many places
d.
none of the above
 

 15. 

There are two main branches of objects in Flash...
a.
customized objects and instance objects
c.
global objects and customized objects
b.
global objects and instance objects
d.
global objects and movie clip objects
 

 16. 

Consider the following code and indicate the most correct statement below.

b = new Boolean(false);
a.
The parentheses contain a set of arguments given to the constructor that set up the object
c.
both a and b
b.
The idea is that you are giving data to the object’s constructor, whose job it is to set up your object instance for you to use
d.
none of the above
 

 17. 

Objects can be divided into five primary groups:
a.
core, media, movie, global, and instance
c.
core, media, movie, client/server, and authoring
b.
core, media, movie, button, boolean
d.
core, media, movie, global, and authoring
 

 18. 

The largest number that Flash can store is 1.79769313486231e+308.  If you add anything to this value, ...
a.
it remains unchanged because the extra can’t be stored
c.
the result is NaN
b.
the result is infinity
d.
the result becomes a negative number
 

 19. 

Consider the following code and indicate the most correct response.

o = new Object();
o._x = 100;
o._y = 100;
o._xscale = 50;
attachMovie(“ball”, “ball”, 1, o);
a.
This script is creating a new object object
d.
all of the above
b.
The object ‘o’ can be reused
e.
none of the above
c.
the properties of the movie clip “ball” has been changed through the use the object ‘o’
 

 20. 

Consider the following code and indicate the most correct response...

o = new Object();
o.onKeyUp = function(){
trace(“key up!”);
}
a.
this function will work
c.
when a key ‘o’ is release, the message “key up!” will be send to the output screen
b.
this funciton will not work unless you add a Key.addListenerMethod
d.
none of the above
 

 21. 

The Mouse Object has the following methods...
a.
addMouse, hideMouse, removeListener, showMouse
c.
addListener, hide, removeListener, show
b.
addListener, hide, removeMouse, showMouse
d.
none of the above
 

 22. 

This object allows you to do several things, including check the size of the stage, set the stage alignment, configure the way the stage is scaled, and register a listener for the onResize event.
a.
The MovieClip Object
c.
The System Object
b.
The Stage Object
d.
The Environment Object
 

 23. 

Flash allows us to draw on the stage using the Drawing API.  The Drawing API is...
a.
a set of objects contained in MovieClip that allows you to draw lines and fills inside a clip instance.
c.
a set of methods contained in MovieClip that allows you to draw lines and fills inside a clip instance.
b.
a set of methods contained in the Drawing Object that allows you to draw lines and fills inside a clip instance.
d.
You cannot draw lines and fills inside a clip instance
 

 24. 

Consider the following code and indicate the most correct response...

createEmptyMovieClip(“mc”,1);
mc.moveTo(100,100);
mc.lineStyle(10, 0xFF0000, 75);
mc.lineTo(200,200);
a.
The lineStyle should be defined before the creation of the EmptyMovieClip “mc”
d.
both b and c
b.
This draws a line from the current drawing point (100,100) to the point given in the call (200,200) using the current line style, which is a 10-pixel thick, partially transparent red line.
e.
this code will not work
c.
The lineTo method call draws a line, assuming you have set a line style with a call to lineStyle
 

 25. 

The MovieClipLoader class is
a.
a collection of event handlers that help to determine how much of a movie has loaded
c.
a class that contains methods to instantiate a MovieClip
b.
a collection of event handlers that actually load a MovieClip
d.
both b and c
 

Matching
 
 
Match the following MovieClip Methods:
a.
attachMovie
e.
loadVariables
b.
duplicateMovieClip
f.
removeMovieClip
c.
globalToLocal
g.
unloadMovie
d.
localToGlobal
h.
swapDepths
 

 26. 

Removes a clip dynamics instance from existence
 

 27. 

Given a point that is relative to this clip, this method converts it to a point that is relative to the stage
 

 28. 

Changes the relative depth setting of two clips
 

 29. 

Given a point that is relative to the stage, this method converts that point into coordinates that are relative to the clip the method is called upon.
 

 30. 

Creates a new clip instance by duplicating an existing one
 

 31. 

Loads data from the server into the properties of a clip
 

 32. 

Removes a .swf that was loaded from the server
 

 33. 

Creates a new MovieClip instance from a library symbol
 
 
Match the Sound Method with the correct description
a.
attachSound
e.
loadSound
b.
getPan
f.
setPan
c.
getTransform
g.
setTransform
d.
getVoume
h.
setVolume
 

 34. 

Retrieves an object containing the current transformations that have been applied to the sound
 

 35. 

Changes the volume setting
 

 36. 

Sets the stereo panning
 

 37. 

Applies a sound transform
 

 38. 

Associates a sound in the library to a Sound object
 

 39. 

Determines the current volume setting
 

 40. 

Determines the current pan setting
 

 41. 

Loads a sound during the execution of your movie
 



 
Submit          Reset Help