I am trying to retrofit an existing flash project to use named anchors for
forward and back buttons. Originally, the site had a menu of 7 buttons, each
of which called a function to load the relevant content... nothing complicated.
To implement the named anchor navigation, I have created 7 empty frames on the
_root timeline, labeled them and set them as anchors. Then I removed the
function call from the button and changed the button action to
gotoAndStop("framelabel") I put the previously existing function call on the
respective frame along with a stop action. This works perfectly. Click the
button, the timeline jumps, the function executes and the content loads...
awesome... However... when I click the back button, it doesn't go back to the
previously viewed frame, it goes back to the frame previous to the current one
on the time line. For example, assuming Home is button 1 and the default
starting position, when I click on say, button 3, then click the browser's back
button, it goes to the frame for button 2. A subsequent press of the back
button goes to the frame for button 1.
It looks like flashplayer is inserting all the anchor frames into the
javascript history list, not just what is clicked on. For instance, if I am on
button 1 and click button 6, I hear 5 IE navigate 'clicks', and 5 objects are
inserted into the browser history between the page I was on and the page I
selected.
I have tried many things, both in this mentioned flash movie, as well as new,
blank ones and it doesn't seem to matter if the named anchors are frames,
scenes or any combination of the two. If anyone can shed any light on this
matter, I would greatly appreciate it