PDA

View Full Version : Working w/ the back button in Flash - Need Help.



tonygarcia
September 30th, 2004, 04:22 PM
Hello Everyone,

I'm working on making a small flash site, the client has requested that the site respond the the Back button :sigh:

So I googled, and found this great tutorial:
See It Here: http://www.robertpenner.com/backbutton_mx/
Get Source Here: http://www.robertpenner.com/experiments/flas/backbutton.zip

Bascially I want to change the current code on the numbered HTML pages (1.html - 5.html) currently this is the code inside these pages


<script language="JavaScript">
parent.flashframe.setPage(5);
</script>

....and I'd like to change the fuction within these pages to something like this


<script language="JavaScript">
parent.flashframe.gotoAndStop(15);
</script>

The only fuction I want to change is to have the code take me to a specific frame in flash. - Oh, and "gotoAndStop(15);" is not working. Does anyone know how to do this???

Please help. :geek:

lunatic
September 30th, 2004, 04:32 PM
Not totally positive but I think you can change flashframe to the name of your movie clip that contains the frame you want to go to. Also, you might want to consider using a frame label instead of a number - its more convenient.

:hr:

tonygarcia
September 30th, 2004, 04:38 PM
I figured it would be easier to get it to go to a certian frame. I do have labels in my timeline ;) as well as the anchors.

Thanks for responding

Can anyone help??

tonygarcia
October 1st, 2004, 10:19 AM
anyone?