[Flash 8 - AS2] Help! loadListener

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:


//  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! :slight_smile: Best wishes, Luke