Study Guides (390,000)
CA (150,000)
SFU (5,000)
IAT (80)
IAT 167 (20)
Midterm

IAT167MidtermReview.doc


Department
Interactive Arts & Tech
Course Code
IAT 167
Professor
Jack Stockholm
Study Guide
Midterm

This preview shows page 1. to view the full 4 pages of the document.
Review
Variable terms
Assignment (=) - setting the value of a variable anywhere in code
E.g my variable = 11
Initialization - setting the value of a variable on the same line where it is created
Declaration - creating a variable and identifying its data type
var myvariable = 11
Essential elements of a game
Play
Pretend
A goal
A set of rules
public function doSomething(inpVal:int):Boolean
{ allignment of brackets
var return_value:Boolean = false;
var TestCase:int = 12; camel_case (should use cap in classes)
var otherTotal:int;
otherTotal = 2;
if (TestCase / otherTotal == inpVal) evaluation
{
return_value = true;
} else {
return_value = false;
}
return return_value;
}
Which method captures mouseClicks?
Instantiating the MouseEvent.click class
* Calling the addEventListener method
Instantiating the addEventListener class does not exist
Calling the MouseEvent method of MovieClip under events
Passing the CLickEvent variable our function name
Arrays
Element-each slot for a variable that an array holds
You're Reading a Preview

Unlock to view full version