Week 1 Day 2: Mask and Programming Fundamentals

Things to turn in:

  • 2 Flash files: x-ray mask animation and code modification exercise
  • 1 paper handout: Getting started to write ActionScript
  • 1 paper handout:Identify programming constructs

General Criteria:

  • X-ray mask animation:
    • use of symbols
    • use of mask
    • use of correct tweening on the mask

How the completed files may look like:

File #1: X-ray mask

 

File #2: Code modification exercise

Modify the given .fla file so that it works like this:

  • Use the UP and DOWN arrow to move the missile up and down
  • The spaceship moves down instead of across the stage. When it goes off the bottom of the stage, it comes back up to the top of the stage.
  • When the missile is fired, it moves horizontally to the left.
  • The spaceship changes its size depending on whether the missile hits it or not. (It's up to you to make the spaceship smaller or larger when the missile misses or hits the spaceship.)