3. Creating the Back and Forward Buttons
You have finished everything except the Back and Forward buttons. While this is optional, it is always nice to provide users a way of navigating your photo gallery without having to use the back and forward keys. To create the back and forward buttons, try the following steps:
Draw the arrows or text that you choose to use for the back and forward buttons.
Select a button and press F8. From the Convert to Symbol dialog box, select Button and press OK. Repeat this step for the other button.
Right click on the button for "back" and select Actions. Add the following line of code:
on (release) {
_root.changePhoto(-1);
}
Similarly, right click on the button for "forward" and select Actions. Add the following line of code:
on (release) {
_root.changePhoto(1);
}
Rejoice! You have just completed your photo gallery tutorial (again) with the next and forward buttons.
We hope the information helped you. If you have any questions
or comments, please don't hesitate to post them on the
Forums section Submit your Tutorial at Click Here