The first step is to create an animated button and assign an action to it. Draw a circle, make it a symbol and give it a button property, don't forget to assign a Goto frame 25 action when it's clicked. Now place it on the left hand side in frame 1. In frame 12 place the same circle on the right hand side and for frame 24 place it back on the left hand side (Remember the position of the circle in frame 1? Place frame 24 in a position so it animates smoothly in to frame 1). It should look something like this.
Note: Frames with actions assigned to them display a small 'a' in the Timeline.
In order to assign an action to a keyframe, we must first select the keyframe from the timeline, in this case frame 24, and choose Modify > Frame. Actions can only be placed on a keyframe so place one in frame 24 if you haven't already. If you place it in a normal frame, the action will be place in the previous keyframe.
|» Level Basic|
Rating: 7 Votes: 245
|Eddie is the former content editor for Flash Kit.|
|Download the files used in this tutorial.|
|Download (12 kb)|
|More help? Search our boards for quick answers!|