Week 2 Day 2: Arrays and Loops

How the Completed Lab Files Work:

File #1: Create an array with method 1

Practice creating an array of at least 5 items with method 1. No visuals on stage.

 

File #2: Create an array with method 2

Practice creating an array of at least 5 items with method 2. No visuals on stage.

 

File #3: for loop

Practice writing a for loop to search for an item in an array. No visuals on stage.

 

File #4: OOP Pong -- PongBall.as and an .fla

Same gameplay from the player's perspective, but your code uses an array and for loops to handle multiple PongBall objects.

 

File #5: Pre-lab for tomorrow's 3d fly-through lab

See instructions in class. Create movieclip symbol, class, instantiate 100 objects. Use array and loops.

 


Extra Effort:

Extra File #1: Use an array and for loops to handle 10 Car objects