# Catching a VideoError?

**URL:** <https://forum.kirupa.com/t/catching-a-videoerror/265484>\
**Category:** Uncategorized\
**Created:** [July 9, 2008, 2:42pm UTC](https://forum.kirupa.com/t/catching-a-videoerror/265484 "2008-07-09T14:42:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Johnnymac](https://avatars.discourse-cdn.com/v4/letter/j/e9c0ed/32.png) [@Johnnymac](https://forum.kirupa.com/u/Johnnymac)\
**Post date:** [July 9, 2008, 2:42pm UTC](https://forum.kirupa.com/t/catching-a-videoerror/265484/1 "2008-07-09T14:42:46Z")

</div>

Hi,

I’ve got the FLVPlayback component on the stage (called videoDisplay).

And the following code:

import fl.video.\*;  
videoDisplay.source = ‘video.flv’;

try {  
} catch (e:VideoError)  
{  
trace("got error: " + e.message);  
}

It doesn’t trace an error when I change the video source from video.flv though. It only displays the player skin. How do I get the error message to appear in the output panel?

The next stage: How do I get it to display the error once I get it working in the output panel? In a text field? I also don’t want the video skin appearing, just a message saying that there is an error.

Thanks,

John
