Skip to main content
relaxatraja
Inspiring
May 17, 2011 12:16 PM UTC
Question

MediaPromise

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 is closed to new replies. Start a new post to keep the conversation going.

11 replies

Participating Frequently
Jun 2, 2011 7:19 PM UTC

Was a solution to this problem ever found?

Translate
relaxatraja
Inspiring
Jun 3, 2011 5:24 AM UTC

Still not getting the solution

Translate
Participating Frequently
May 17, 2011 6:22 PM UTC

NativeApplicaiton looks like a typo.

CameraRoll.supportsBrowseForImage should work fine in AIR 2.5.


Translate
relaxatraja
Inspiring
May 18, 2011 6:08 AM UTC

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;

Translate
relaxatraja
Inspiring
May 19, 2011 9:20 AM UTC

anybody?

Translate
Known Participant
May 17, 2011 2:56 PM UTC

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

Translate