Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Browsing multiple photos in flash for android

I am trying to develop an application for android phone using flash/as3, I want to know How to browse multiple photos from gallery using media promise or camera roll. Right now I am able to browse only one photo at a time.

       var mediaFile:CameraRoll = new CameraRoll();
       var imagePromise:MediaPromise;
       CameraRoll(mediaFile).browseForImage();

is there any code or resources that I can look at.

like image 886
Hegde Avatar asked Jul 23 '12 05:07

Hegde


1 Answers

You have to create the "browser".

You have to read/write the camera roll files one at a time (how all systems work) but your app can save the images and file references and do whatever with the images - user can select multiple images.

Import a file from camera roll, convert to bitmap, manipulate in any way and push into an array. If you're making a gallery, resize the bitmaps to thumbnail size. Your app should only stores the thumbnail bitmap in gpu, the original bmp is the camera roll file.

Here is an example of converting camera roll files to bmp: http://www.flashandmath.com/mobile/cameraroll/

like image 74
moot Avatar answered Sep 20 '22 21:09

moot