MouseEvent.MOUSE_MOVE listener won't remove


hey all,

 

so event chain issue. i'll try discribe best can. i'm going have put work around in here goes.

 

 

i have object called scroller. scroller moves in either horizontal or vertial direction. scroller can container other scrollers children 1 depth , moving in opposite direction parent.

 

scrollers can move in 1 direction @ time , require user mouseup , mousedown re-engage direction lock.

 

direction lock determined via greater displacement of x on y origin point.

 

displacement checking runs on both objects starts @ child of chain.

 

1.) child.mouse_move 

2.) parent.mouse_move   

 

if childs fires direction lock first. parent gets , event stop displacement checking.

 

child.mouse_move;

child.dispatchevent(parent.stop_checking)

parent.removeeventlistener(mouse_move)

parent.mouse_move;

 

if notice above parent still listens mousemove event. took while figure out removeeventlistener not work. @ first thought events doubled somehow though as3 doesn't allow anymore following created endless loop , that's when realized listener not removed.

 

while(parent.hasevent(mouse_move))

   parent.removeeventlistener(mouse_move)

 

is bug or have parents.mouse_move being queued in event chain of things? can see happening don't know why listener not able removed. i'm planning on creating bug ticket figure i'd ask here because more people respond these.

hi pete,

 

please log bug sample source files track issue.

 

thanks,

nimisha



More discussions in AIR Development


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

PProHeadless.exe has stopped working error when opening projects in Adobe Media Encoder CS6

Preconditions Failed. - Joomla! Forum - community, help and support