Wrox Programmer Forums
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Flash (all versions) section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 16th, 2004, 08:51 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default automatic 'redirection'

I want my flash to automatically take you to the webpage after it runs. I do not know what that is called. Can someone help me?

Thanks.

 
Old September 16th, 2004, 02:11 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

I think you need to use getUrl for that. If you specify _top as the target frame, the page will replace the animation.

If you add this code to the last frame, it will redirect the user once the movie has completed loading and playing.

I am sure there are other (and better ways as well).....

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Blue Room by The Orb (Track 3 from the album: U.F.Orb) What's This?
 
Old September 16th, 2004, 03:47 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Imar is correct, but there is an easier way than direct ActionScript coding.

Select the frame you want to redirect on (in your case probably the last one). Click the Add Behavior button (it looks like a blue '+') in the Behaviors panel. Go to Web->Go to Web Page. Make sure the target is the desired target (in a frames web page _top will replace the frameset) and type in where you want to go.

And that should do it :-)

HTH,

-Snib <><
http://www.snibworks.com
There are only two stupid questions: the one you don't ask, and the one you ask more than once.
 
Old September 19th, 2004, 01:31 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Right. I knew there had to be a better way..... I don't know much about Flash and/or Actionscript, so I couldn't believe I could come up with the best solution.... ;)

Cheers,

Imar
 
Old September 20th, 2004, 07:29 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Thanks.






Similar Threads
Thread Thread Starter Forum Replies Last Post
redirection Tomcat mohamma_reza Apache Tomcat 1 July 13th, 2007 03:40 PM
Redirection andyw ASP.NET 2.0 Basics 2 May 29th, 2006 05:23 PM
Automatic redirection once page with SWF loaded Burton HTML Code Clinic 1 September 13th, 2003 06:23 AM
Automatic Redirection after SWF loaded Burton HTML Code Clinic 2 August 14th, 2003 12:15 PM
Redirection a5xo3z1 Beginning PHP 4 June 19th, 2003 02:24 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.