Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 18th, 2004, 08:29 AM
Xtr3mer Xtr3mer is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Location: Aruba
Posts: 1 Xtr3mer User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
  #2  
Old January 19th, 2004, 05:19 PM
Tann San Tann San is offline
Gotta get to the next screen..
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Nov 2003
Location: Legion of Dynamic Discord
Posts: 4,632 Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)  Folding Points: 7835 Folding Title: Novice Folder
Time spent in forums: 3 Weeks 14 h 52 m 21 sec
Reputation Power: 538
Facebook MySpace
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.
__________________
-Tann

-Vote for your favorite ActionScript editor here.

Reply With Quote
  #3  
Old January 19th, 2004, 05:26 PM
Fish_12345 Fish_12345 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Location: Here
Posts: 22 Fish_12345 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > Flash Redirect


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway