Opens a file in the built-in image editor.
$au.imageUploaderFlash('uploaderID').files().get(index).showImageEditor();
If no coordinates specified, the uploader will appear in the center of the uploader interface. Specifying custom coordinates of the dialog is useful when you hide the standard interface and want to control where it appears.
For example, assume that you want to display it in a div
with id
equal to my-elem
. You can calculate it as follows:
var uploader = $au.imageUploaderFlash("Uploader1"); var bounds = document.getElementById("my-elem").getBoundingClientRect(); uploader.showImageEditor(bounds.width/2 + bounds.left, bounds.height/2 + bounds.top);