28th February 2008 - 4 minutes read time
One common thing that can be done with Flash is to create presentations. These presentations can then be exported to a swf file and viewed by just about everybody.
To make a presentation create a new flash document and create a new layer. This layer will be used to keep the next and previous buttons in a consistent place.
On the first frame add the following code to stop the animation running at the first frame.
stop();
Next, create a button that you can use for moving forward and backward through the presentation. This can be done by drawing an object on the stage, right clicking on it and selecting Convert to Symbol.... You can then add these buttons to the stage and create events for them.
For the previous button a function exists in ActionScript called prevFrame(). So all you need to do is attach that function call to the release event (ie. after a user has clicked on it) on that button.