Flashadvisor logo
:: Desktop Shortcut
:: Flash Help
Advices from Experts

 Submit Here! · Link to Us · Newsletter · Tell a Friend ·

      Add Tutorial |

 

Advertise here










 

Google

Search WWW   
FlashAdvisor.com

 Home > Tutorials  > ActionScript

Create a Photo Gallery

Author: lookaa | Email
Website : www.flash-slide-show.com


Advertisement


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.
Download Source File

| 1 | 2 | 3 |

Rate This Tutorial :
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
  

Home | About Us | Contact Us | Feedback | Advertise with us

Best viewed in 800x600 resolution with Internet Explorer.

Site Developed and Hosted by  ethicsolutions.com
All rights reserved with FlashAdvisor

Flash is a registered trademark of Adobe Systems, Inc.

28 users online