hello everyone
I request the experts How to convert this code to actionscript 2
https://www.kirupa.com/developer/as3...s_disk_pg1.htm
or
What code to do the same
i have a code but requires that the image be in the same program folder But I want to upload the image from anywhere
my code is :
PHP Code:
on (press) {
import flash.net.FileReference;
var allTypes:Array = new Array();
var imageTypes:Object = new Object();
imageTypes.description = "Images (*.jpg, *.jpeg, *.png)";
imageTypes.extension = "*.jpg; *.jpeg; *.png";
allTypes.push(imageTypes);
var listener:Object = new Object();
listener.onSelect =functions(file:FileReference):Void {
my_MC.loadMovie(file.name);
}
listener.onCancel =functions(file:FileReference):Void {
}
var fileRef:FileReference = new FileReference();
fileRef.addListener(listener);
fileRef.browse(allTypes);
}
Finally excuse me for my bad english language
Accept my greetings and appreciation