NativeDialogs is a native extension that allows the use of mobile native dialogs in iOS and Android. The extension provides an API to use several dialogs, such as Toast, Text Input, Progress, Alert, multi single choice and DatePicker.
All dialogs available can be used in iOS or Android. When that dialog is not natively supported by the platform (such as Toast in iOS), the extension uses a third-party lib to create a very similar dialog.
Sample
protected function showDatePicker():void { var d:NativeDatePickerDialog = new NativeDatePickerDialog(); d.addEventListener(NativeDialogEvent.CLOSED,onCloseDialog); d.addEventListener(NativeDialogEvent.CANCELED,trace); d.addEventListener(NativeDialogEvent.OPENED,trace); d.addEventListener(Event.CHANGE,function(event:Event):void { var n:NativeDatePickerDialog = NativeDatePickerDialog(event.target); trace(event); trace("Date set to:"+String(n.date)); }); d.buttons = Vector.(["Cancle","OK"]); d.displayMode = NativeDatePickerDialog.DISPLAY_MODE_DATE_AND_TIME; d.title = "DatePicker"; d.message = "Select date:"; d.show(false); } private function onCloseDialog(event:NativeDialogEvent):void { var m:iNativeDialog = iNativeDialog(event.target); m.removeEventListener(NativeDialogEvent.CLOSED,onCloseDialog); trace(event); m.dispose();//Must be called if not used again }