Uploading file using FLash

Anyone knows how to upload a file using flash?and also the code for opening a file browser window???
thx