Hello,
I'm a complete flash noob at this point and am trying to learn as I go along. I've tried looking into a couple of books but didn't find them satisfactory (nor online documentation for that matter). But anyway. . .
I'm trying to make a small, simple program to upload a couple files onto a server. But that isn't really important either at this point.
MY question is this: I have a function where fr is a fileReferenceList and output_message is a test field used to display info.
Simple right? The problem is that I was expecting the function to hang for a minute at fr.browse() until the user finished selecting files but it doesn't. It goes right to the for loop, which exits immediately because fr.fileList has yet to be defined. Any way I can save this part from running until after the user is finished with selecting files?Code:function file_browse(event:MouseEvent):void { fr.browse(); output_message.text = "Files waiting to be uploaded: \n"; for(var i:Number = 0;i < fr.fileList.length; i++) { output_message.text += fr.fileList[i].name; output_message.text += "\n"; } }
Thanks a lot for any help.
-Tony


Reply With Quote

Bookmarks