CursorManager Inline

Once again I let my jQuery habits get into my ActionScript code.
this.addEventListener(MouseEvent.MOUSE_OVER,
  function():void{
  cursorId = CursorManager.setCursor(Cursors.MOVE,CursorManagerPriority.HIGH,-16,-16); });

this.addEventListener(MouseEvent.MOUSE_OUT,
  function():void{ CursorManager.removeCursor(cursorId); });
What do you think? Should I leave it?

Social


profile for Jonathan Rowny at Stack Overflow, Q&A for professional and enthusiast programmers