HomeFlash Page 6 - Flash 101 (part 5): Spiralling Out Of Control
Remote Control - Flash
This week, find out why movie clip symbols are a Good Thing, andlearn to add interactivity to your Flash movies with the built-in Actions.And when you're done, use the new Flash Projector to distribute your moviesto all and sundry. Who needs Hollywood when you can just roll your own?!
The basic actions available to you in the Actions panel allow you to add very simple interactivity to your movie. For example, the Go To action allows you to jump to a specific frame, while the Play and Stop actions allow you to pause and resume the animation sequence respectively. You can toggle the quality of the movie with the Toggle High Quality action, or send commands to the Flash player (assuming you're using the standalone Flash player to play back the clip).with the FSCommand action.
In order to illustrate these actions, I've put together a simple animation sequence (you may remember it from one of the previous articles) and added buttons to it in order to allow the user to control the movie. All actions are triggered when the user clicks a button, or hits the key corresponding to the first letter of the command.
The first button uses the Play action, the second uses the Go To And Play action, the third uses the Stop action, and the last one uses the FSCommand action to send a quit message to the standalone player (if it exists).