# Checking valid paths from within flash

**URL:** https://forum.kirupa.com/t/checking-valid-paths-from-within-flash/55278
**Category:** Uncategorized
**Created:** [June 22, 2004, 4:12pm UTC](https://forum.kirupa.com/t/checking-valid-paths-from-within-flash/55278 "2004-06-22T16:12:32Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![serkios](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/serkios/32/608_2.png) [@serkios](https://forum.kirupa.com/u/serkios)
#### Post date: [June 22, 2004, 4:12pm UTC](https://forum.kirupa.com/t/checking-valid-paths-from-within-flash/55278/1 "2004-06-22T16:12:32Z")

</div>

Hi,

I’m making a tool for users to enter the filename of a video in an input box. From here the users click a “next screen” button. I’m trying to write some code that will verify if the filename provided will actually find a video on the user’s system. I’ve been trying to load the file into an empty movie clip, and I can get it to load ok. My problem is, I’m having trouble writing a catch statement when the movie ISN’T found. Is there a better way of doing this? I tried using .onData event handlers to see whether or not this could be my control statement, but I haven’t figured it out yet. Any bright ideas? :h:  
Thanks
