NativeDialogs
NativeDialogs copied to clipboard
NativeDatePickerDialog, Event.CHANGE is not triggering all the times on HTC devices
Hi,
Thanks for this awesome native extension
The Event.CHANGE is not working all the times on HTC phones (I have tested on HTC sensation XE, & HTC sensation XL), on Samsung devices it's triggering perfectly.
Below is the lines of code i use, this is weird!
var d:NativeDatePickerDialog = new NativeDatePickerDialog();
d.addEventListener(NativeDialogEvent.CLOSED,onCloseDialog); d.addEventListener(Event.CHANGE,function(event:Event):void{ var n:NativeDatePickerDialog = NativeDatePickerDialog(event.target); _date = n.date; userInfo_mc.btn_dob.label_txt.text = _date.getDate() + "/" + ( _date.getMonth() + 1 ) + "/" + _date.fullYear; });
d.displayMode = NativeDatePickerDialog.DISPLAY_MODE_DATE; d.title = "Date Picker"; d.message = "Select date:"; d.date = _date; d.show(true);
function onCloseDialog(event:NativeDialogEvent):void{ var m:iNativeDialog = iNativeDialog(event.target); m.removeEventListener(NativeDialogEvent.CLOSED,onCloseDialog); m.dispose();//Must be called if not used again }
Having the same issue on an HTC Nexus S testing with the demo code posted on the page. It seems the Event.CHANGE only gets fired the first time and then it looses context and cant recover. Any help would be appreciated!!
Hello, I am also getting this Problem with Micromax Funbook (P 300). But it is working fine in my HTC Desire HD.
Please Provide any help !!
Looking for the solution soon.