[Papervision3D] manage listeners in interactiveSceneManager

kay w. kay.alexander.wiegand at googlemail.com
Thu Mar 20 06:51:50 PST 2008


hi all,

on basis of thread "Object deletion and Memory Issue"
(http://www.nabble.com/Object-deletion-and-Memory-Issue-td16098250.html) and
the described memory issue i looked for ways to get more control over my
events and listeners.

so i added adjacent to the exist initListener function a removeListener
function into InteractiveSceneManager class:

public function removeListeners():void{

// remove listeners
container.removeEventListener(MouseEvent.MOUSE_DOWN, handleMousePress);
container.removeEventListener(MouseEvent.MOUSE_UP, handleMouseRelease);
container.removeEventListener(MouseEvent.CLICK, handleMouseClick);
container.stage.removeEventListener(MouseEvent.MOUSE_MOVE, handleMouseMove);
			
}


maybe it's helpful and suggestive for others.

kay
-- 
View this message in context: http://www.nabble.com/manage-listeners-in-interactiveSceneManager-tp16180349p16180349.html
Sent from the Papervision3D mailing list archive at Nabble.com.




More information about the Papervision3D mailing list