You are here

actionscript3

callLater vs. validateNow

For years, many Flex developers have known the secret to fixing many a UI problem was using either callLater() or validateNow() methods. Much to my surprise, some of these developers do not understand WHY these fix problems, what the difference is, and which method to use.

The Problem

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?
Subscribe to RSS - actionscript3