943,565 Members | Top Members by Rank

Ad:
Oct 22nd, 2006
0

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

Expand Post »
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.
Similar Threads
Reputation Points: 10
Solved Threads: 1
Junior Poster
NuGG is offline Offline
110 posts
since Feb 2005
Oct 22nd, 2006
0

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

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");
Reputation Points: 85
Solved Threads: 42
Nearly a Posting Virtuoso
vishesh is offline Offline
1,362 posts
since Oct 2006
Oct 22nd, 2006
0

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

aaha makes sense.

Thanks for that. great help,

NuGG
Reputation Points: 10
Solved Threads: 1
Junior Poster
NuGG is offline Offline
110 posts
since Feb 2005
Mar 2nd, 2009
0

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

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?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Lije124 is offline Offline
1 posts
since Mar 2009

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Graphics and Multimedia Forum Timeline: big problem
Next Thread in Graphics and Multimedia Forum Timeline: Need help in Action script......................





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC