Skip to main content
relaxatraja
Inspiring
May 17, 2011
Question

MediaPromise

  • May 17, 2011
  • 3 replies
  • 2194 views

I'm not able to get MediaPromise from the list when importing, I opened a new flash CS5  Air for Andorid file and when compiling getting some errors like

C:\Documents and Settings\v-raja.rajan\Desktop\CameraRollMediaPromise\CameraRollMediaPromiseExample.as, Line 62    1120: Access of undefined property NativeApplicaiton.

C:\Documents and Settings\v-raja.rajan\Desktop\CameraRollMediaPromise\CameraRollMediaPromiseExample.as, Line 24    1119: Access of possibly undefined property supportsBrowseForImage through a reference with static type flash.media:CameraRoll.

Am I missing any configuration of AIR 2.5.

This topic has been closed for replies.

3 replies

Participating Frequently
June 2, 2011

Was a solution to this problem ever found?

relaxatraja
Inspiring
June 3, 2011

Still not getting the solution

Participating Frequently
May 17, 2011

NativeApplicaiton looks like a typo.

CameraRoll.supportsBrowseForImage should work fine in AIR 2.5.


relaxatraja
Inspiring
May 18, 2011

Yeah! that was an typo error. Thanks for pointed out, but still have those errors. I'm aware AIR 2.5 is the one I need, but I selected AIR for Android from the publishing method, still having the error below errors. Please help me to sort it out, even I was not getting the list from the dropdown while importing.

C:\Documents and Settings\v-raja.rajan\Desktop\CameraRollMediaPromise\CameraRollMediaPromiseExample.as, Line 24    1119: Access of possibly undefined property supportsBrowseForImage through a reference with static type flash.media:CameraRoll.

Pointing to this line: if (cameraRoll.supportsBrowseForImage){

C:\Documents and Settings\v-raja.rajan\Desktop\CameraRollMediaPromise\CameraRollMediaPromiseExample.as, Line 62    1120: Access of undefined property NativeApplication.

Pointing to this line:NativeApplication.nativeApplication.exit();

C:\Documents and Settings\v-raja.rajan\Desktop\CameraRollMediaPromise\CameraRollMediaPromiseExample.as, Line 72    1120: Access of undefined property imagesBytes.

Pointing to this line: var str:String=imagesBytes.readUTFBytes(300);

C:\Documents and Settings\v-raja.rajan\Desktop\CameraRollMediaPromise\CameraRollMediaPromiseExample.as, Line 2    1172: Definition flash.display:NativeApplication could not be found.

Pointing to this line: import flash.display.NativeApplication;

relaxatraja
Inspiring
May 19, 2011

anybody?

Known Participant
May 17, 2011

You should use Air 2.6 (come with Flash CS5.5).