Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Update a browser URL without reloading the page

Explorer ,
Apr 25, 2008 Apr 25, 2008
Is there any way to update the browser url from flash without reloading the page?

My main interest is in being able to use flash to change the url variables to reflect what is currently being displayed in the swf.

ie. http://www.blah.com?frame=0 might be set to http://www.blah.com?frame=10 when the swf reaches frame 10, allowing the user to go directly to frame 10 if they return to the page later.

Thanks
Rick
TOPICS
ActionScript
645
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 25, 2008 Apr 25, 2008
"allowing the user to go directly to frame 10 if they return to the page later."

return to what page? www.blah.com?

and how are they returning? are they clicking a link somewhere or are you trying to affect their browser history/back button?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Apr 28, 2008 Apr 28, 2008
Hi kglad.

They would be returning to the swf at www.blah.com at frame 10.
They would be returning by pressing their browser back button, although it would also be nice if they would be able to copy the url.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 28, 2008 Apr 28, 2008
if you're using timeline navigation you can use the swfaddress class for "deep linking" which allows users to navigate through your site using their forward and backward browser buttons.

use google to search.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 30, 2008 Apr 30, 2008
LATEST
You can try a technique that is used by web designers to prevent back button actions. Through JavaScript you can write strings after hash "#" - like bookmarking (anchors) and then read this variables. The advantage is that page doesn't reload and bookmarks are saved in the browser history (back button issues).

Hope it helps.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines