[flexcoders] VideoDisplay inconsistent behavior, it gets Stuck

2007-11-28 Thread Nadeem Manzoor
Hello Guys

I am working on a Flex Media application. I am sending Flv path through
Javascript. Everythings is working fine. But, suppose, if i send a fake flv
url it throgh an Exception connectionerror and after then it gets stuck
e.g. after connectionerror if i am trying to pass a proper flv path it does
not trigger ready event or any exception

Any Ideas ?

-- 
Regards,

Nadeem Manzoor


[flexcoders] VideoDisplay inconsistent behavior, it gets Stuck

2007-11-28 Thread Nadeem Manzoor
Hello Guys

I am working on a Flex Media application. I am sending Flv path through
Javascript. Everythings is working fine. But, suppose, if i send a fake flv
url it throgh an Exception connectionerror and after then it gets stuck
e.g. after connectionerror if i am trying to pass a proper flv path it does
not trigger ready event or any exception

Any Ideas ?

-- 
Regards,

Nadeem Manzoor


Re: [flexcoders] VideoDisplay inconsistent behavior, it gets Stuck

2007-11-28 Thread Michael Wills
First I was going to say you have to put that in a try..catch block, 
except accessing an invalid URL won't throw the exception in a way the 
try..catch can work with. Can you add an event listener to your FLV 
loader similar to this post?


http://www.kirupa.com/forum/showthread.php?p=1957547#post1957547

It's from quite a while ago so I don't know if it will be of much help...

Michael

Nadeem Manzoor wrote:




Hello Guys
 
I am working on a Flex Media application. I am sending Flv path 
through Javascript. Everythings is working fine. But, suppose, if i 
send a fake flv url it throgh an Exception connectionerror and after 
then it gets stuck e.g. after connectionerror if i am trying to pass a 
proper flv path it does not trigger ready event or any exception
 
Any Ideas ?


--
Regards,

Nadeem Manzoor

 


Re: [flexcoders] VideoDisplay inconsistent behavior, it gets Stuck

2007-11-28 Thread Nadeem Manzoor
Thanks for reply. It is really useful to use try catch but in my case it
doesn't work, so here is my question

Is it possible to check a URL is valid before even loading the file? for
example i get an flv path from Web service, before setting this path as a
source of Video Display component, i want to check whether the file exists
or not But i don't want to load that file. When i got a confirmation that
the file exists, i will pass that URL to VideoDisplay Component. So Guys is
that possible or is there any other technique ?




On 11/28/07, Michael Wills [EMAIL PROTECTED] wrote:

 First I was going to say you have to put that in a try..catch block,
 except accessing an invalid URL won't throw the exception in a way the
 try..catch can work with. Can you add an event listener to your FLV loader
 similar to this post?

 http://www.kirupa.com/forum/showthread.php?p=1957547#post1957547

 It's from quite a while ago so I don't know if it will be of much help...

 Michael

 Nadeem Manzoor wrote:



 Hello Guys

 I am working on a Flex Media application. I am sending Flv path through
 Javascript. Everythings is working fine. But, suppose, if i send a fake flv
 url it throgh an Exception connectionerror and after then it gets stuck
 e.g. after connectionerror if i am trying to pass a proper flv path it
 does not trigger ready event or any exception

 Any Ideas ?

 --
 Regards,

 Nadeem Manzoor

 




-- 
Regards,

Nadeem Manzoor