Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Linear navigation script

Status
Not open for further replies.

alexanderdring

Technical User
Dec 27, 2002
36
FR
Hi all,

I need to create what sounds like a relatively simple script. You have the page and forward/back buttons. It should be possible to use the buttons to slide back and forth between 12 screens in a linear fashion. That's all! The 12 screens will be different colours to show the changes and the buttons will stay the same.

I'd be grateful for any help!

Thanks.
 
have two buttons on a layer called buttons.

have them instance names of btnPrev and btnNext

then on a new layer called AS put this code:
Code:
btnPrev.onPress = function(){
   prevFrame();
}
btnNext.onPress = function(){
   nextFrame();
}
then put everything else on a layer below those layers with a stop(); command on each frame.

Simple as it gets

Regards,

Martin

Computing Help And Info:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top