flex 4
Submitted by jrowny on Wed, 05/04/2011 - 15:12
I'm loving the new Flash Builder and 4.5 SDK. I don't know if everyone came to the same realization that I did... but "states" are awesome now with the 4+ SDK! You can change ANY property on the fly. Take for example a two stage button:
<s:Button icon.viewing="{Icons.PENCIL}"
icon.editing="{Icons.DRIVE}"
label.viewing="Edit"
label.editing="Save"
click.viewing="{currentState='editing'}"
click.editing="{currentState='viewing'}"
/>
Submitted by jrowny on Fri, 03/19/2010 - 11:08
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?
Submitted by jrowny on Fri, 03/05/2010 - 11:08
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'."