Re: [flexcoders] RemoveEventHandler issue

2010-01-20 Thread Alex Harui
You can’t know the number. I guess I would just set a flag so the handler returns right away. On 1/19/10 10:34 PM, "j2me_soul" wrote: Amazing! So how can I know what the magic number after the __ID_handler_ I guess is ? My codes is created by flash catalyst so I can't change each event

Re:Re: [flexcoders] RemoveEventHandler issue

2010-01-19 Thread j2me_soul
Amazing! So how can I know what the magic number after the __ID_handler_ I guess is ? My codes is created by flash catalyst so I can't change each eventlistener to actionscript code. Is there a way to solve that ? 在2010-01-20 12:59:15,"Alex Harui" 写道: CreationComplete only fires once so

Re: [flexcoders] RemoveEventHandler issue

2010-01-19 Thread Alex Harui
CreationComplete only fires once so that handler probably isn’t getting removed either. When you type: change=”mytext_changeHandler(event)” The compiler generates code like this: private function mytext_changeHandler_10423948(event:TextOperationEvent):void { mytext_changeHandler(

[flexcoders] RemoveEventHandler issue

2010-01-19 Thread j2me_soul
Can't remove the eventhandler which wrote in mxml. protected function mytext_changeHandler(event:TextOperationEvent):void { TextInput(event.target).removeEventListener(event.type, mytext_changeHandler); }