Load variables from popup script/file upload

I’ve searched, but I don’t believe flash (actionscript 2.0) itself offers a “select filefield” and fileupload functionality?

That’s why my swf has a button which opens a popup window. In the window the user has the ability to upload a file to the server. That’s no problem.

But I would like to send the filename back from the popup to the swf. How on earth can I manage that?

I can’t use Loadvars.sendAndLoad in the swf because then my visitor does not see a popup and can’t select the files.
Loadvars.load doesn’t work in popup?

Any ideas would be very highly appreciated, because I’m very stuck. Is it possible?