Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is this ane free? #66

Open
bsysoftware opened this issue Dec 11, 2018 · 2 comments
Open

is this ane free? #66

bsysoftware opened this issue Dec 11, 2018 · 2 comments

Comments

@bsysoftware
Copy link

hi,
I want to use your ane. how to buy it? or is it free? can you please help me?

@AlexUrrutia
Copy link

Yes it is free

@bsysoftware
Copy link
Author

bsysoftware commented Dec 11, 2018

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");
      }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants