User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Graphics and Multimedia section within the Web Development category of DaniWeb, a massive community of 402,376 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,083 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Graphics and Multimedia advertiser: Programming Forums
Views: 5876 | Replies: 2 | Solved
Reply
Join Date: Feb 2005
Location: England
Posts: 91
Reputation: NuGG is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
NuGG's Avatar
NuGG NuGG is offline Offline
Junior Poster in Training

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

  #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 10: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.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Oct 2006
Location: India
Posts: 1,289
Reputation: vishesh is on a distinguished road 
Rep Power: 4
Solved Threads: 32
vishesh's Avatar
vishesh vishesh is offline Offline
Nearly a Posting Virtuoso

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

  #2  
Oct 22nd, 2006
In the last keyframe of your movie, write following code in action panel:
getURL("http://www.domain.com/index.html");
Reply With Quote  
Join Date: Feb 2005
Location: England
Posts: 91
Reputation: NuGG is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
NuGG's Avatar
NuGG NuGG is offline Offline
Junior Poster in Training

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

  #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  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Graphics and Multimedia Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Graphics and Multimedia Forum

All times are GMT -4. The time now is 12:48 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC