Forum Moderators: open

Message Too Old, No Replies

HELP: how to time movie URL redirection

Automatic link to URL site

         

leiter

2:05 pm on Jul 11, 2005 (gmt 0)

10+ Year Member



I have a Flash movie on my site and I would like it to automatically go to a specified URL after a certain number of seconds. I was wondering if anyone could help me with this. Thank you!

benihana

2:22 pm on Jul 11, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



welcome to WebmasterWorld!

The stps you need to take are roughly:

1) Know the frame rate of your movie. Usually 12 fps by default but youll need to check.

2)Use an onEnterFrame to increment a variable, say 'i'

3) When i=y*z, where y=number of seconds and z=your movie frame rate, use getURL to open the page you want.

Alternativily you can look into using getTimer on the enterframe

<added> This is assuming your movie isnt to 'heavy' in terms of taking up the client machines processing power</added>

Good luck

[edited by: benihana at 2:26 pm (utc) on July 11, 2005]

leiter

2:26 pm on Jul 11, 2005 (gmt 0)

10+ Year Member



Thank you very much for your help! I'll try it straight away.