A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Programing Buttons

  1. #1
    Junior Member
    Join Date
    Feb 2010
    Posts
    5

    Programing Buttons

    So I have created a program that has many different pages; however, each page contains these 3 buttons - "Back," "Next," and "Homepage." (all of which will perform the same function) Is there any way of programing them and creating a function that enables, for example the "back" button to take the user to the previous frame or the "next" button to take them to frame exactly after the present page?

    Thanks for your help,

    karjen

  2. #2
    Senior Member Robb@exo's Avatar
    Join Date
    Jun 2003
    Location
    Canada
    Posts
    1,540
    Try something like this,
    Actionscript Code:
    next_btn_instanceName.onRelease = function() {
       gotoAndStop(_currentframe + 1);
    }
    back_btn_instanceName.onRelease = function() {
       gotoAndStop(_currentframe - 1);
    }
    Wile E. Coyote - "Clear as mud?"

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center