hmm yea the timer solution doesnt seem to be too ideal although it seems to
work.....
I`ll try and post this question on the adobe forums too...
thanks ....
firdosh


On 2/12/07, beecee1977 <[EMAIL PROTECTED]> wrote:

  I encountered something like that before...

As far as I can recall we were getting the video duration on the
videoEvent.READY event... Like you say sometimes the duration was
there, sometimes it was still -1. I think we just put in a timer to
keep trying until the value wasn't -1, and that worked. However, this
doesn't seem like an ideal solution, so I'd be interested to hear if
anybody has a better solution.

Obviously you'll still have an issue with flv's that don't include the
duration in the metadata, as mentioned by the other posters, but if
you're getting it sometimes that doesn't seem to be your problem.

--- In [email protected] <flexcomponents%40yahoogroups.com>,
"Firdosh Tangri" <[EMAIL PROTECTED]>
wrote:
>
> well the weird thing is every time I run the app in debug mode
sometimes I
> get -1 sometimes i get 280.66 which is the correct value...??
>
> its just plain random
>
> firdosh
>



Reply via email to