PDA

View Full Version : Need help with Flash


kraigc
01-30-05, 01:52 AM
We've got a flash intro for a website. How do you make the flash intro automatically forward to the front page of the website?

Clay
01-30-05, 02:31 AM
You could use the meta refresh tag (where nSeconds below is the number of seconds before the redirection would occur:<HEAD>
<META HTTP-EQUIV="refresh" content="nSeconds;URL=http://www.yoursite.com/newpage.htm">
</HEAD>This isn't the most desirable approach but it's a start for you. I've not developed much with Flash but I would think that there is some other more graceful way of doing this with Flash itself.

Clay
01-30-05, 02:37 AM
Some more info that may help:
http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_14126
http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_14086

de><ta
01-30-05, 07:05 PM
You could use the meta refresh tag (where nSeconds below is the number of seconds before the redirection would occur:<HEAD>
<META HTTP-EQUIV="refresh" content="nSeconds;URL=http://www.yoursite.com/newpage.htm">
</HEAD>This isn't the most desirable approach but it's a start for you. I've not developed much with Flash but I would think that there is some other more graceful way of doing this with Flash itself.

The problem with that approach is that if the flash intro takes a while to load, it will not play out fully before going to the other site.

Instead if you put this action script code at the very last frame of your movie
it should do the trick:
Get URL ("http://www.yourlink.com", window=_self")


edit: btw here is the latest piece of flash I worked on www.what-is-the-syndicate.tk :D

Clay
01-30-05, 08:54 PM
The problem with that approach is that if the flash intro takes a while to load, it will not play out fully before going to the other site.

Instead if you put this action script code at the very last frame of your movie
it should do the trick:
Get URL (&quot;http://www.yourlink.com&quot;, window=_self&quot;)


edit: btw here is the latest piece of flash I worked on www.what-is-the-syndicate.tk :D
I knew there had to be a more graceful way of handling this. Thanks for the tip. :cool: