Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

getURL and closing browser question

Status
Not open for further replies.

Tanag

Programmer
Oct 5, 2005
18
CA
I'm having some problems with the getURL command in Flash 8.

We have a product demo that runs and the user can click around and view various things about our product. At the end they click an exit button, it displays a small ending video saying "call us now" and all that jazz. Then I want the user to be redirected back to our main page. Easy enough, right?
Well for some reason It's not working. Since I just want the user to be auto directed once the outro video plays I have the code getURL(" on the last frame of the scene.
I have no idea why this doesn't work. It just passes right by it and goes on to the next scene in the list like it would if there was nothing there.

Alternatively I would like to be able to close the window instead, this would be an equally acceptable way to end the video. Not sure how I could do this though, I read I could use JavaScript inside the getURL but I couldn't get it to work.

Any help for either of these questions would be greatly appreciated. Thanks!
 
Yes you can use javascript in getURL. Example:
Code:
getURL("javascript:window.close();");

It's weird that your redirect isnt' working though.

Hope it helps.

Wow JT that almost looked like you knew what you were doing!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top