|
|
Question : getting flash to read the url loading page to goto specific frame on the timeline
|
|
I have a flash header with specific "button" states showing based on where you are in the timeline.
So, if you click on the "about" button you are taken to frame 10 where "About" is displayed so you can tell what page you are on.
However, if someone directly types in www.mydomain/about.html then they don't see the appropriate header information. How can I get flash to read the url of the page being loaded so that it goes to the appropriate frame to show the appropriate header content for that page?
Thanks
|
Answer : getting flash to read the url loading page to goto specific frame on the timeline
|
|
you could simply pass the frame you want the flash to go to into the swf as a querystring in the embed tag on each html page.
in your embed tag change "myMovie.swf" to "myMovie.swf?skipTo=about"
then in your flash movie on frame 1 just add this code:
if (skipTo!="") gotoAndPlay(skipTo);
just make sure the "skipTo" value is the same as the frame label you want the movie to go to or you'll need to add a little more code to make things work.
|
|
|
|