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.
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/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With