Week 2 Assignments

In the first example below, the mouseDown and mouseUp events each triggers the creation of a yellow line pointed in a random direction. The lines are designed to bounce off the walls and die after they have done so ten times. Also, they get slightly bigger each time they hit a wall.

Download the .fla --- Download the .as

Below, each time the user clicks on the animation, a marble is released in the center. It begins to spiral down what is supposed to look like a cone seen from above. It picks up speed and becomes smaller, eventually it disappears. While it spirals downward, every second it rotates itself.

Download the .fla --- Download the .as