|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Flash Redirect
Let's say your websites intro has a logo at the end that you want your visitors to see for about 5 sec. before the page is redirected to the main page of your site. How do you insert the delay? (I know it sounds like a dumb question but it's driving me nuts because it needs to be done using Actionscript) If you want I can email you the file so you can see for yourself that it's pretty dificult for a newbie like myself to do this.
Last edited by Xtr3mer : January 18th, 2004 at 09:06 AM. |
|
#2
|
|||
|
|||
|
Hi, the setInterval function will do what you want.
Code:
function redirect()
{
gotoAndPlay(whatever);
}
setInterval(redirect, 5000);
Use the above in the same location you currently have your redirect happening. setInterval calls a function every x milliseconds. 5000 should be around 5 secs i think. |
|
#3
|
|||
|
|||
|
I think it can be done with only using one tiny bit of actionscript.
In one of the frames of the banner you can have an action to open the new page. So all you really need to do is put that action at a suitable frame so that the movie will be playing for 5. Just say your frame rate was 20 fps, just make your movie have 100 frames of the banner playing, and on frame 100 have the action which would be (for beginner mode in the actionscript):: Actions > Browser/Network > getURL Code:
getURL("URL", "_self");
That should do it and very simple (even i can do it). Fish |
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > Flash Redirect |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|