2 Replies Latest reply on Jul 27, 2010 2:04 PM by John Hall

    Cannot convert IndexChangeEvent to mx.events.ListEvent

    John Hall Level 4

      I must be missing something obvious. I have a spark list (multiple select enabled) and on the change event, I try to act upon the event with a function

       

      private function updateSequenceList(e:IndexChangeEvent):void {

       

           // everything commented out here

      }

       

      and it continually throws the error

       

      Error #1034: Type Coercion failed: cannot convert spark.events::IndexChangeEvent@19cb25f1 to mx.events.ListEvent.

       

      I've tried adding e.preventDefault() but it still happens. Am I overlooking something obvious?