Skip to main content
Participating Frequently
Aug 17, 2014 9:00 AM UTC
Question

Adobe AIR SDK 15 Beta (var dataSource:IDataInput = imagePromise.open();) crash on iOS

I have used Adobe AIR SDK15 to build a iOS app, which have a button to browse the Photo in the iPad, but when i run the line of code "var dataSource:IDataInput = imagePromise.open();", the app will be crash, any body experienced?

This topic is closed to new replies. Start a new post to keep the conversation going.

10 replies

alericmaAuthor
Participating Frequently
Aug 18, 2014 4:14 AM UTC

anybody here?

Translate
Participating Frequently
Aug 18, 2014 12:22 PM UTC

Hi Alericma,

Thank you for reporting issue, though we are not able to reproduce this issue at our end.

we have tried below code snippet,

protected function buttonclick(event:MouseEvent):void

  {

  var camera:CameraRoll=new CameraRoll();

  if(CameraRoll.supportsBrowseForImage)

  {

  // Add event listeners for camera roll events

  camera.addEventListener(MediaEvent.SELECT, imageSelected);

  camera.addEventListener(Event.CANCEL, browseCancelled);

  camera.addEventListener(ErrorEvent.ERROR, mediaError);

  // Open up the camera roll

  camera.browseForImage();

  }

  }

  protected function imageSelected(evt:MediaEvent):void

  {

       var imagepromise:MediaPromise=evt.data;

       try{

                 var dataSource:IDataInput=imagepromise.open();

          }

       catch(err:Error)

       {

            trace("Error Occured");

        }

  }

Could you please share the sample app, with device information,target and device OS, so that we can reproduce at our end.

Thank You

Translate
alericmaAuthor
Participating Frequently
Aug 19, 2014 2:33 AM UTC

Hi Shashank,

We have try the SDK15 beta on Flash Builder 4.7 windows and mac version, the app export from window haven't this issues, but mac will be crash.

THX

Ray

Translate