A less common way of collecting user input is by evaluating clicks on the Stage to signal a change in position. This approach is particularly useful when guiding a character in a game or an avatar to a specific point on the screen.
This sample demonstrates an animation whose path is controlled by clicks on the Stage. Click the Stage to see the animation move toward the click point. Click the buttons to the left to change the behavior of the animation.
User level: Intermediate
To view these samples, you need the following software and files:

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License