If I understand what's happening, you should not have to use any Flex event-related classes in your FlexJS code. They are used at a low-level in the SDK, but developer-facing code should not need them. I would just import org.apache.flex.events.Event and remove any imports for flash.event.* - If you do find them coming up, we need to deal with them.
At least that's my understanding. Peter Ent Adobe Systems On 2/27/14 2:27 PM, "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