flex 4

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?

Migrating to Flex 4, StyleManager

I haven't seen this well documented before, but if you're component was using the style manager and is throwing a bunch of warnings in Flex 4, you need to get the "global" style manager now. You probably see this error:
"3608: 'getStyleDeclaration' has been deprecated since 4.0. Please use 'IStyleManager2.getStyleDeclaration on a style manager instance'."

Syndicate content