NativeDialogs icon indicating copy to clipboard operation
NativeDialogs copied to clipboard

NativeDatePickerDialog, Event.CHANGE is not triggering all the times on HTC devices

Open ramyassaf opened this issue 12 years ago • 2 comments

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 }

ramyassaf avatar Apr 04 '13 07:04 ramyassaf

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!!

imfractured avatar Apr 29 '13 20:04 imfractured

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.

chaitali22 avatar Jun 05 '13 05:06 chaitali22