флеш клиент с помощью ПХП скрипта загружает картинку на сервер
теперь вопрос - может ли флеш клиент как-то изменить размер загружаемой картинки?
* можно ли преобразовать imagePane в BitmapData и после отправить на сервер? или этим кодом картинка во флеш не загружается вообще, а идет на сервер сразу?
*пхп часть работает удовлетворительно
есть код (привожу неполный кусок, без обработчика ошибок и объявления переменных):

Код AS1/AS2:
listener.onSelect = function(selectedFile:FileReference):Void {
//clean statusArea and details area
statusArea.text = details.text = ""
// Flash is attempting to upload the image.
statusArea.text += "Attempting to upload " + selectedFile.name + "\n";
// Upload the file to the PHP script on the server.
selectedFile.upload("upload.php");
};
listener.onComplete = function(selectedFile:FileReference):Void {
// Notify the user that Flash is starting to download the image.
statusArea.text += "Upload finished.\nNow downloading " + selectedFile.name + " to player\n";
//Show file details
details.text = ""
for(i in selectedFile) details.text +="<b>"+i+":</b> "+selectedFile[i]+"\n"
// Call the custom downloadImage() function.
downloadImage(selectedFile.name);
};
uploadBtn.onPress = uploadImage;
imagePane.addEventListener("complete", imageDownloaded);