We're trying not to dispatch flash.events.Event in FlexJS (since there isn't an equivalent in JS). So the change event should be dispatching org.apache.flex.events.Event and the component's event metadata also needs to say that it is dispatching an org.apache.flex.events.Event and the event handling code should be importing and using org.apache.flex.events.Event instead of flash.events.Event.
-Alex On 2/27/14 11:27 AM, "Carlos Rovira" <carlosrov...@apache.org> wrote: >Hi, > >I'm having a problem with FlexJS events. > >* In TodoListView (a extension of ViewBase) if I use in a component >something like: change="logTodo(event)" > >and the method is > >public function logTodo(event:Event):void { > // something >} > >a type coercion error is thrown that said org.apache.flex.events.Event is >not flash.events.Event > >I need to use: public function >logTodo(event:org.apache.flex.events.Event):void { ... } to make it work >or >it doesn't compile > >So it seems there's a scope problem in MXML, > >What do you think about it? > > >-- >Carlos Rovira >http://about.me/carlosrovira