Did you try to use actionscript for creating and destroying the listener ?

Code snippet:

Register:
var _listener:Listener= new Listener(); _listener.addEventListener(
*PrivateChatMessageEvent.**PRIVATE_CHAT_MESSAGE_EVENT*,
*handlePrivateChatMessageEvent*);

to unregister...

_listener.removeEventListener(*PrivateChatMessageEvent.**PRIVATE_CHAT_MESSAGE_EVENT*,*handlePrivateChatMessageEvent*);



On Thu, Mar 20, 2014 at 11:19 AM, dev0x10 <dev.ya...@gmail.com> wrote:

> I'm using old Flex Mate for a project. And I'm using mate listener because
> it's convenient.  So I have this code
> ....
> *<mate:Listener
> type="{PrivateChatMessageEvent.PRIVATE_CHAT_MESSAGE_EVENT}"
> method="handlePrivateChatMessageEvent"/>*
> ....
>
> But how to remove that listener? When I do
> *this.hasEventListener(PrivateChatMessageEvent.PRIVATE_CHAT_MESSAGE_EVENT)*it 
> gives me
>
> *false*
>
> --
> You received this message because you are subscribed to the Google Groups
> "Flex India Community" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to flex_india+unsubscr...@googlegroups.com.
> To post to this group, send email to flex_india@googlegroups.com.
> Visit this group at http://groups.google.com/group/flex_india.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to flex_india+unsubscr...@googlegroups.com.
To post to this group, send email to flex_india@googlegroups.com.
Visit this group at http://groups.google.com/group/flex_india.
For more options, visit https://groups.google.com/d/optout.

Reply via email to