Skip to main content
Participating Frequently
August 17, 2014
Question

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

  • August 17, 2014
  • 1 reply
  • 1350 views

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 has been closed for replies.

1 reply

alericmaAuthor
Participating Frequently
August 18, 2014

anybody here?

Participating Frequently
August 18, 2014

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

alericmaAuthor
Participating Frequently
August 19, 2014

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