How to automatically load next page after flash movie has played...

Thread Solved

Join Date: Feb 2005
Posts: 92
Reputation: NuGG is an unknown quantity at this point 
Solved Threads: 1
NuGG's Avatar
NuGG NuGG is offline Offline
Junior Poster in Training

How to automatically load next page after flash movie has played...

 
0
  #1
Oct 22nd, 2006
I was wondering if anyone knows how to get flash to open another html page after the movie has played.

im trying to make an opening page to my website which plays a short movie with the company logo on etc. When the movie has loaded and finished playing I want it to redirect the users browser to the homepage.

I have embedded the flash movie on a html page, and tried to use JavaScript to redirect the user after a set amount of time. However this doesn't really work because people with a slower connection take longer to download the movie, and then the page changes before the movie has finished playing.

I understand coding can be done in flash but I don't really have a clue how to do this as I am new to flash.

So basically what im asking is:

- Should the flash movie be embedded in a html document (I.E. domain.com/index.html), or should it be loaded directly (I.E. domain.com/movie.swf) for this to work?

- And how would I go about redirecting the user to the homepage after the movie has played?

Thanks for your time,
NuGG
Last edited by NuGG; Oct 22nd, 2006 at 11:09 am.
Pubonwheels - Mobile Bar Services for the South West of England.
The Kings Head Inn - The Kings Head, Underhill, Coleford, Somerset, UK.
South West Ravers - Going out to all you jungle drum and bass ravers.
UFB Live Radio - Keep It Locked.
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 1,311
Reputation: vishesh is on a distinguished road 
Solved Threads: 36
vishesh's Avatar
vishesh vishesh is offline Offline
Nearly a Posting Virtuoso

Re: How to automatically load next page after flash movie has played...

 
0
  #2
Oct 22nd, 2006
In the last keyframe of your movie, write following code in action panel:
Graphics and Multimedia Syntax (Toggle Plain Text)
  1. getURL("http://www.domain.com/index.html");
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 92
Reputation: NuGG is an unknown quantity at this point 
Solved Threads: 1
NuGG's Avatar
NuGG NuGG is offline Offline
Junior Poster in Training

Re: How to automatically load next page after flash movie has played...

 
0
  #3
Oct 22nd, 2006
aaha makes sense.

Thanks for that. great help,

NuGG
Pubonwheels - Mobile Bar Services for the South West of England.
The Kings Head Inn - The Kings Head, Underhill, Coleford, Somerset, UK.
South West Ravers - Going out to all you jungle drum and bass ravers.
UFB Live Radio - Keep It Locked.
Reply With Quote Quick reply to this message  
Join Date: Mar 2009
Posts: 1
Reputation: Lije124 is an unknown quantity at this point 
Solved Threads: 0
Lije124 Lije124 is offline Offline
Newbie Poster

Re: How to automatically load next page after flash movie has played...

 
0
  #4
Mar 2nd, 2009
What if I have an swf movie I can't edit, and I want to go to a new page when the movie ends? At present, the movie replays itself in a loop. Is there some kind of workaround I can use?
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC