Cancelled is only for hitting ESC. Every other kind of activity commits the data in the editor.
Alex Harui Flex SDK Developer Adobe Systems Inc.<http://www.adobe.com/> Blog: http://blogs.adobe.com/aharui From: [email protected] [mailto:[email protected]] On Behalf Of Blue Sent: Tuesday, May 19, 2009 11:03 AM To: [email protected] Subject: [flexcoders] ListEventReason.CANCELLED problem Hello All, I'm having a problem getting the ListEventReason.CANCELLED to fire. I was under the assumption that the ListEventReason.CANCELLED fires when you click outside of the List area but every time I click outside of the list area the only thing that fires is the ListEventReason.OTHER. How can I get the ListEventReason.CANCELLED to work? Here is a code snippet of what I have: <mx:Script> <![CDATA[ ... public function processData( event:ListEvent ):void { if ( event.reason == ListEventReason.CANCELLED ) { event.preventDefault(); return; } ... } ... ]]> &nb! sp; </mx:Script> ! &nbs p; <mx:VBox> ... <mx:List id="lstWorksheet" width="715" height="610" dataProvider="{testList}" editable="true" itemRenderer="com.blue.test.view.CustomItemRenderer" itemEditor="com.blue.test.view.CustomItemEditor" &nbs! p; itemEditBeginning="startEdit(event)" itemEditEnd="processData(event);"/> </mx:VBox> Any help on understanding this is greatly appreicated. Thank you Blue

