Has anyone noticed the ready event being fired off before it's actually ready?
For some reason I am getting that. I have an event listener that is listening
for ready, which means the video is loaded in and ready to play. But if I trace
out totalTime once ready is fired, it is -1 meaning it's not finished loading
in yet. I know the file is there and it plays and that I am pointing to the
correct location of the file. It doesn't do this all of the time. It's random.
The only way that I have been able to fix this is to check if the totalTime is
-1. If it is then I try loading it in again. I do that 2 or 3 times and the FLV
will get loaded in correctly. After 2 or 3 times I make it fail out. I am
making a video gallery. I have a VideoDisplay on the left and a TileList on the
right. The TileList right now has a bunch of button with the name of the video.
Click on it and it loads the video into the VideoDisplay. If I hard code the
video url or path on the
VideoDisplay, it works every time. If the source is a variable, that's when I
start having the problem. Does anyone know how to fix this or know of source
code I can peek at to at least point me in the right direction?
____________________________________________________________________________________
Never miss a thing. Make Yahoo your home page.
http://www.yahoo.com/r/hs