Dear,
i am using upload files from flash and php and need it to be asp as my client server didn't support php only asp

php code:
<?php
//create the directory if doesn't exists (should have write permissons)
if(!is_dir("./files")) mkdir("./files", 0755);
//move the uploaded file
move_uploaded_file($_FILES['Filedata']['tmp_name'], "./files/".$_FILES['Filedata']['name']);
chmod("./files/".$_FILES['Filedata']['name'], 0777);
?>

actionscript code:
//Allow this domain
System.security.allowDomain("http://localhost/");
import flash.net.FileReference;
var listener:Object = new Object();

listener.onSelect = function(selectedFile:FileReference):Void {
selectedFile.upload("upload.php");
};

var imageFile:FileReference = new FileReference();
imageFile.addListener(listener);

uploadBtn.onPress = uploadImage;
imagePane.addEventListener("complete", imageDownloaded);

function uploadImage(event:Object):Void {
imageFile.browse([{description: "Image Files", extension: "*.jpg;*.gif;*.png"}]);
}