dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Browser back button

  1. #1
    Junior Member
    Join Date
    Dec 2000
    Posts
    14

    Browser back button

    Is there a way to monitor when a user clicks on the browsers back button? What I want to do is be able to change a variable within a flash movie when that event occurs.
    [swf width="300" height="40" background="#000000"]
    http://www.xtywebworks.ns.ca/flashfooter.swf[/swf]

  2. #2
    iguanagirl32 mraspiller's Avatar
    Join Date
    Jul 2002
    Posts
    817
    If the user clicks the back button in the browser, that will take them out of the flash movie, ad back to the page they were at before they went to the movie...it that what you want? Or do you want them to click "back" and go to the previous part of the movie they were just at?

    With JavaScript, you can check the browsers history, but I'm not sure if Flash has a History object...look into that if that is what you want...

  3. #3
    Junior Member
    Join Date
    Dec 2000
    Posts
    14
    Hi there - nice frog!
    What I have is a flash menu controlling the content in an iframe. I use a variable to keep track of which section the user is in and change the buttons appropriately. The problem is that when the user hits the browsers back button it screws up the navigation sequence in the flash menu. For instance - if they are in section 1, the section 1 button is depressed. If they go to section 2 the section 1 button pops up and the section 2 button becomes depressed. If they use the back button they wind up in section 1 with section 2's button remaining depressed. I don't want to trash the back button - I'd just like to monitor it if possible.
    [swf width="300" height="40" background="#000000"]
    http://www.xtywebworks.ns.ca/flashfooter.swf[/swf]

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