thomas.deweese wrote:
> 
> Hi Peppe,
> 
>     You need to pass the same object instance to remove as you
> passed to addEventListener you are passing a new instance to
> remove:
> 
> Peppe <[EMAIL PROTECTED]> wrote on 12/13/2006 09:10:51 AM:
> 
>>      t.addEventListener("mousedown", new OnDownAction(), false);
> 
> 
>>      t.removeEventListener("mousedown", new OnDownAction(), false);
> 
>    You need to remember the listener you added:
>         EventListner downListener;  // class member...
> 
>         [...]
>         downListener  = new OnDownAction();
>         t.addEventListener("mousedown", downListener, false);
> 
> 
>         [....]
>       t.removeEventListener("mousedown", downListener, false);
>         downListener = null;
> 
> 


ok...you have reason, now it works
-- 
View this message in context: 
http://www.nabble.com/insert-polygon-tf2810417.html#a7904523
Sent from the Batik - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to