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;
                     }

             ...

         }

         ...

         ]]>
     </mx:Script>


     <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"
                     itemEditBeginning="startEdit(event)"
                     itemEditEnd="processData(event);"/>


     </mx:VBox>

Any help on understanding this is greatly appreicated.

Thank you

Blue

Reply via email to