Skip to main content
Participant
March 6, 2007
Answered

Auto redirect

  • March 6, 2007
  • 3 replies
  • 228 views
Any code suggestions on how to create a time line based auto redirect to an html page *.html (navigated in the current frame not pop-up) that activates automatically at the end of a movie?

I have a product demonstration movie under construction and want to auto redirect to an html form to allow a product trial signup. The form exists and we don't want to develop it in flash. Your help to an Actionscript newbie would be greatly appreciated.
This topic has been closed for replies.
Correct answer ggshow
at the end of the movie, add one empty keyframe & add the script below to keyframe

getURL("anotherpage.html", "_self");

3 replies

UP4400Author
Participant
March 6, 2007
Thank you...yes getURL works nicely.
Participating Frequently
March 6, 2007
Hi

You can use getURL() method to call an html page.
with getURL() you can call the javascript also.
1. at the end of product demonstation you can make a html popup by calling
getURL("youPage.htm", "_blank");
or call the javascript like this
getURL("javascript:javascriptFunction(param)")
make sure the js function : "javascriptFunction" is in your html page.
now you can play with some javascript to show the form in the same page or in an html popup.

thanks
ggshowCorrect answer
Participating Frequently
March 6, 2007
at the end of the movie, add one empty keyframe & add the script below to keyframe

getURL("anotherpage.html", "_self");