# Help! loadMovie and onload

**URL:** <https://forum.kirupa.com/t/help-loadmovie-and-onload/251280>\
**Category:** flash\
**Created:** [February 6, 2008, 8:34pm UTC](https://forum.kirupa.com/t/help-loadmovie-and-onload/251280 "2008-02-06T20:34:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![samuels27921](https://avatars.discourse-cdn.com/v4/letter/s/f05b48/32.png) [@samuels27921](https://forum.kirupa.com/u/samuels27921)\
**Post date:** [February 6, 2008, 8:34pm UTC](https://forum.kirupa.com/t/help-loadmovie-and-onload/251280/1 "2008-02-06T20:34:10Z")

</div>

I have a URL Query String Generated Flash Site and I need this code so that when it can not find the swf typed it will return with an Error. Here’s my code that I thinks should work.

> 

loader1.onLoad = function() {  
if (success) {  
pagetxt.text = (“page Found”)  
} else {  
pagetxt.text = (“File Not Found”);  
}  
};
