07-12-2011 10:57 AM
Hi,
Is it possible to load the images from the Playbook using 'browseForOpenMultiple'.
Does anyone have any working sapmle code for this?
Sangram
07-15-2011 11:16 AM - edited 07-15-2011 11:16 AM
Hello Sangram,
Are you referring to the picture app loading multiple images in one screen? or previewing multiple images from within your application?
Looking forward to your reply.
07-15-2011 12:09 PM
07-15-2011 12:32 PM
07-15-2011 12:58 PM
07-15-2011 03:24 PM
Post up some code, but basically the browseForOpenMultiple() returns an array with the files names to an event, so you need to be registered for selectMultipleEvent to be able to access the array.
Also this dialogue is not opened modally, so there's a chance the z ordering could be wrong, not a problem of course if you only have this one dialogue open.
07-15-2011 10:25 PM
07-18-2011 09:25 AM
var file:File = new File(); file.addEventListener(FileListEvent.SELECT_MULTIPLE, fileMultipleSelected); file.browseForOpenMultiple( "open multiple files" ); function fileMultipleSelected( event:FileListEvent ):void { for (var i:int = 0; i < event.files.length; i++) { trace(event.files[i].nativePath); } }
I assume that your code looks something similar to this if it works on the desktop. I have tested this on the PlayBook and it does work.
07-18-2011 12:37 PM
07-20-2011 08:44 AM
Hi,
When I checked on the device, it does not work with event.files[0].nativePath, but if I access event.files[0].url, it works perfectly.
I don't know what goes wrong with the nativePath but url works as expected.
Thanks all for keeping up with the issue.
Sangram