4 Replies Latest reply on May 10, 2006 12:40 PM by tonomud

    unexpected behavior when button is clicked-"playhead" jumps to wrong frame

      I'm working on a flash site, and am running into an actionscript issue that has me a bit stymied.

      The main .fla timeline is 42 frames long. Frames 1-23 are the preloader, each frame between frames 24-31 contain one of the sections of the site, then frames 36-42 contain subsections of one of the main sections. 32-35 are just blank frames to help me keep things visually separated while I'm working on this project.

      In frames 36-42 I have a sub-navigation for that subsection setup. For each of the buttons in that sub navigation, I've attached a very simple actionscript that links to the other subsection pages. I've used actionscript like I've shown below, where "web" in this case, is the name of the frame that I'm targeting:
      on (release) {

      When I click on a link to take me to the final frame, which happens to be named "specevents" (special events), it takes me to that frame correctly. If I click the "specevents" button again while still in that frame, I'm taken back to the preloader screen. This type of jump also happens from within some of the other sub-navigation buttons, i.e., clicking a link for a frame which I'm already in will take me to a totally unexpected frame (always the same frame for each button, however).

      Actually, in looking at it a bit closer, I find that whenever I click on one of the sub-nav links, it takes me forward one frame. Since the "specevents" frame is the last frame, it takes me back to the first frame of the movie.

      This is all a little strange to me, since by all appearances, I've used the same method on the buttons of the main navigation, and they don't do anything unexpected when clicked.

      FYI--the page in question here can be found at: http://gravitygroup.com/testflashy/ The "our work" section's sub navigation is what I'm looking at.

      Any ideas? Thanks!