Just in case anyone else runs across this problem, I fixed it by adding  
     import mx.core.mx_internal;
     use namespace mx_internal;
It's in the Flex livedocs under VideoDisplay already. The person that posted it 
on there figured it out about the same time I did and was able to post it 
before me. The problem with this is first, mx_internal doesn't show up in 
intellisense so most people don't know about it. Second, if you reasearch it, 
though it's the only way to fix it it isn't supported by Adobe. So if Adobe 
updates something it could break. But test your stuff before you take things 
live :)


----- Original Message ----
From: David Freerksen <[EMAIL PROTECTED]>
To: [flexcomponents] <[email protected]>
Sent: Thursday, December 20, 2007 6:57:20 AM
Subject: [flexcomponents] VideoEvent.READY being fired prematurly

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 homepage. 



      
____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

Reply via email to