我使用 flex 4.6 开发移动应用程序,我需要拍照并且我做到了,但有些表格需要多张照片。我如何在手机上拍摄多张照片?我的代码是;
protected function windowedapplication1_creationCompleteHandler(event:FlexEvent):void
{
if (CameraUI.isSupported){
myCam = new CameraUI();
myCam.addEventListener(MediaEvent.COMPLETE, onComplete);
}
}
……
protected function button5_clickHandler(event:MouseEvent):void
{
theImage.filters = [];
theImage1.filters = [];
theImage2.filters = [];
theImage3.filters = [];
if (CameraUI.isSupported){
myCam.launch(MediaType.IMAGE);
}
}
private function onComplete(evt:MediaEvent):void{
theImage.source = evt.data.file.url;
theImage1.source= evt.data.file.url;
theImage2.source=evt.data.file.url;
theImage3.source=evt.data.file.url;
}