You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hi,
thank you for your reply. I want to add image that is chosen from album or taken by user on my stage .But I can not do that. I added some extra codes under onImageChosen to add the image. can you please help me?
private function onImageChosen(event:AirImagePickerDataEvent):void {
var imageData:AirImagePickerImageData = event.imageData;
var imageLoader:Loader = new Loader();
var imagePromise:MediaPromise =event.imageData;
if(imagePromise.isAsync)
{
log( "Asynchronous media promise." );
imageLoader.contentLoaderInfo.addEventListener( Event.COMPLETE, imageLoaded );
imageLoader.contentLoaderInfo.addEventListener( IOErrorEvent.IO_ERROR, imageLoadFailed );
imageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, resizeLoader);
imageLoader.loadFilePromise(imagePromise );
}
else
{
imageLoader.loadFilePromise(imagePromise );
this.addChild( imageLoader );
}
trace("Image chosen");
}
hi,
I want to use your ane. how to buy it? or is it free? can you please help me?
The text was updated successfully, but these errors were encountered: