Bjorn,

 

Can you please file a bug in the Flex bug base at http://bugs.adobe.com/flex/?

 

It seems that the behavior is a bit inconsistent. In some cases (like trying to 
load http://www.adobe.com/fake.flv, you can listen for the stateChange event 
and compare the video display control's state property to the 
VideoEvent.CONNECTION_ERROR constant. Although it seems a similar state change 
event isn't being dispatched when trying to load something like 
http://www.adobe.com/ (or, oddly I don't see the similar event when trying to 
load http://www.skitx.com/fake.flv)

 

Peter

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of bjorn -
Sent: Tuesday, October 23, 2007 6:52 AM
To: [email protected]
Subject: [flexcoders] What event does VideoDisplay send on wrong data?

 

If I try to set the .source property of a VideoDisplay object to an URL which I 
know isn't a video file (e.g. http://www.skitx.com/ <http://www.skitx.com/> ) I 
only get Loading events:

 

[Event type="stateChange" bubbles=false cancelable=false eventPhase=2] 
state:loading
[ProgressEvent type="progress" bubbles=false cancelable=false eventPhase=2 
bytesLoaded=0 bytesTotal=0] state:loading 
[ProgressEvent type="progress" bubbles=true cancelable=false eventPhase=3 
bytesLoaded=130 bytesTotal=130] state:loading

 

Why no error events of any kind?

 

Bjørn

-- 

========================
http://www.juicability.com <http://www.juicability.com>  - flex blog
http://www.43min.com <http://www.43min.com>  - funny movies 

 

Reply via email to