Animation

  1. Home
  2. Computing & Technology
  3. Animation

Making Your Own Flash Slingshot Target Game: II

By Adrien-Luc Sanders, About.com

4 of 6

We don’t want to add a stopDrag; there’s no reason to, and it’s just unnecessary code. The slingshot can’t follow the mouse outside of the area of the Flash movie, so it doesn’t need to be stopped.

We do, however, need to add a command to make the slingshot play through the “firing” animation when it’s clicked. To do that, click on the very last line of your current script (not inside it; we want to add the script after the existing script). Then add another on command, but this time leave it as on (release).

Explore Animation

About.com Special Features

Animation

  1. Home
  2. Computing & Technology
  3. Animation
  4. Flash Animation Tutorials
  5. Making Your Own Flash Slingshot Target Game: II

©2009 About.com, a part of The New York Times Company.

All rights reserved.