Skip to main content
July 31, 2008
Question

Is it possible to goto a scene or frame based on URL?

  • July 31, 2008
  • 1 reply
  • 261 views
If I have a Flash movie with several scenes that I want to use as different "pages" on my site, rather than creating 4 versions of this file with "gotoAndStop("scene2",1) at the beginning of the page to get it to the right place...

Is it possible to have the Flash movie automatically goto a specific scene (or frame) based on what the URL, or perhaps the HTML in the page says?
This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
August 1, 2008
yes. you can use the _url property of movieclips to detect the swf file name and you can use the externalinterface class and javascript to detect the html file name.

but don't use scene info for navigation and don't use the goto functions. use frame numbers or labels and the goto methods.