Hi, this is my first post, and I hope you can help me with this problem...Im using cameraUI.launch for open the camera app and take a picture without problems, this works fine, but when I try to open gallery from iPad using browseForImage this open a little window to select a folder rigth? but when I try to select any folder this cancel all operation and I cant upload any picture from my gallery..please help,,,Im working with FB 4.7 , apache 4.14 and adobe Air 16.0.0.272, on Android devices and iPhones I dont have this problem just on iPad.
this is the source code:
protected function btnGallery_clickHandler(event:MouseEvent):void {
if( CameraRoll.supportsBrowseForImage )
{
if(Capabilities.manufacturer.indexOf("Android") >= 0)
{
loader = new Loader();
loader.contentLoaderInfo.addEventListener( Event.COMPLETE, this.contentLoadedHandler );
}
cameraRoll = new CameraRoll();
cameraRoll.addEventListener( MediaEvent.SELECT, imageSelected );
cameraRoll.addEventListener( Event.CANCEL, browseCanceled ); /*This is activated whenever I try to select a folder to select an image on the iPad*/
cameraRoll.addEventListener( ErrorEvent.ERROR, mediaError );
cameraRoll.browseForImage();
}
}