# \[Flash 8 - AS2\] Help! loadListener

**URL:** <https://forum.kirupa.com/t/flash-8-as2-help-loadlistener/258307>\
**Category:** Uncategorized\
**Created:** [April 22, 2008, 9:43pm UTC](https://forum.kirupa.com/t/flash-8-as2-help-loadlistener/258307 "2008-04-22T21:43:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![thesecraftonly](https://avatars.discourse-cdn.com/v4/letter/t/c2a13f/32.png) [@thesecraftonly](https://forum.kirupa.com/u/thesecraftonly)\
**Post date:** [April 22, 2008, 9:43pm UTC](https://forum.kirupa.com/t/flash-8-as2-help-loadlistener/258307/1 "2008-04-22T21:43:23Z")

</div>

Hello! First time poster here. Have enjoyed using this website for some time now. Need some help if thats ok?!

I have a simple upload script working and I need to check whether an upload was successful or not and then inform users. Heres where I am at the moment:

```php

// WHEN FILE HAS UPLOADED INFORM USER
listener.onComplete = function(selectedFile:FileReference):Void {
    
    // TRY AND LOAD IMAGE JUST UPLOADED INTO A MOVIE CLIP TO CHECK IF UPLOAD WAS SUCCESSFUL
    _root.empty1_mc.imageTest_mc.loadMovie("thumbnails/" + selectedFile.name, imageTest_mc);  

```

… so the file has completed and I am attempting to load the uploaded file into an empty movie clip. I have figured that I need to either

a) set a time delay of a few seconds within the script to give a chance for the small thumbnail image to load and then check the width of the movie clip to see if it loaded.

b) use a listener and listen for a load error.

Can anyone please help me? It is urgent!! Thankyou very much for reading! 🙂 Best wishes, Luke
