View Full Version : Video Load

02-14-2004, 09:21 AM
I have a page (Video Page)that contains a blank video object. Depending upon user input on a previous page, "Video Page" will load and play the correct video. No Problems. However some videos take a few seconds or more to load.

I have created a "Video Loading" swf, that starts to run when "Video Page is up.

MY problem is having the swf quit when the video is actually running.

I thought to use a timer command at 500 milliseconds.

I would get the time of the video as it played, and if the video time is greater than 500 milliseconds (the time of the fade in from black), the swf would be stopped and made invisible.

Seems reasonable, but all attempts at scripting (I'm very new with this program) aren't working. Any examples you can think of that might help. Thanks


02-14-2004, 09:31 AM
In your timer, set some actions to check on the video state and if the state is playing then hide/stop your flash and stop the timer.

vidstate = Video.GetState("Video1");
if vidstate == 2 then --the video is playing
--hide/stop your flash and stop the timer.
--elseif vidstate ~= 2 --your vid is paused or playing states 0 and 1
--do something else here.

Video.GetState (http://www.indigorose.com/webhelp/ams50/Program_Reference/Actions/Video.GetState.htm)

02-14-2004, 10:58 AM
Thanks. I'll give it a try