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
Post a Comment