Class Notes (1,100,000)
CA (630,000)
SFU (10,000)
IAT (200)
IAT 167 (30)
Lecture 2

IAT167-Week 2 Lecture 2.docx


Department
Interactive Arts & Tech
Course Code
IAT 167
Professor
Jack Stockholm
Lecture
2

This preview shows half of the first page. to view the full 2 pages of the document.
Week 2 Lecture 2
ActionScript 3.0 Basics
Declaration
var keyword
Strongly Typed
Type Declaration
No declaration = undefined
Data Types
Primitive Types
Boolean
int
Null
Number
String
uint
void
Object
Complex Types
Object
Array
Date
Error
Function
RegExp
XML
XMLList
Initialization
Setting a placeholder value before the variable is used
Always initialize:
-string
-number
-boolean
Assignment
Setting the value of a variable
Assignment vs. Evaluation (equals)
Assignment =
Evaluation ==
Literals are values that appear in your code
Avoid Magic Numbers, instead use Constants
You're Reading a Preview

Unlock to view full version