Quantcast
Channel: Adobe Community : Discussion List - Using Flash Builder
Viewing all articles
Browse latest Browse all 1802

Problem with iPad when I try to select a photo from gallery using browseForImage

$
0
0

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();

     } 

  }


Viewing all articles
Browse latest Browse all 1802

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>