Код: Выделить всё
var ImageFile:FileReference = new FileReference();var ImageData:ImageSnapshot = ImageSnapshot.captureImage(vbox1, 72);var FileName:String = "image" + Math.floor(Math.random() * 100).toString() + Math.floor(Math.random() * 100).toString() + ".png";ImageFile.save(ImageData.data, FileName);
Код: Выделить всё
VK.api("photos.getUploadServer", {aid:albumaid}, podtverzdeniezagruski, podtverzdeniezagruski);
Код: Выделить всё
var image:ImageSnapshot = ImageSnapshot.captureImage(vbox1, 72, new PNGEncoder());var dataimg:ByteArray = image.data;
Код: Выделить всё
var stx:MultipartURLLoader = new MultipartURLLoader();stx.addEventListener(Event.COMPLETE, onUploadCompleteThroughAlarm, false, 0, true);stx.addFile(dataimg, "file.png", "file1");stx.load(serverphoto);
А по url:
Код: Выделить всё
{"server":***,"photos_list":"[]","aid":***,"hash":"***"}