dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: previous button - AC not working?

  1. #1
    Member
    Join Date
    Mar 2003
    Posts
    50

    previous button - AC not working?

    Hi,

    I have "previous" and "next" buttons that I have on the main timeline. I simply want the next button to advance to the next frame and the previous button to go back to the previous frame. My buttons have instance names of "previous_btn" and "next_btn". Here is the code I am using. Also, I am using CS3, but am working in a 2.0 AC project file.

    Code:
    stop();
    next_btn.onRelease = function () {
    nextFrame();
    }
    previous_btn.onRelease = function () {
    prevFrame();
    }
    Now, the next button works perfectly. However, the previous button doesn't work at all. Can anyone tell me why/how to fix it?

    I've also tried using this code for the previous button, but it doesn't work either.

    Code:
    previous_btn.onRelease = function () {
    _root.prevFrame();
    }
    Thanks for any help!

  2. #2
    Member
    Join Date
    Mar 2003
    Posts
    50
    Nevermind. I figured it out. Needed to actions on actual buttons rather than on their own actions layer.

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