The Flex Tip
Flex & ActionScript etc.
Tuesday, July 20, 2010
Sunday, June 13, 2010
New Blog
Check out the new Word Press blog- General programming, but I've got a backlog of Flash posts coming up...
Code Pushers Blog
Code Pushers Blog
Sunday, May 23, 2010
GraphicGroup
Probably the most common hack I've had to perpetrate in Flex 4 has had do with creating backgrounds for groups. Obviously Adobe wanted to keep the Group class lightweight, but denying fill/stroke capabilities seems silly considering the graphics object is already there- we just need methods to access it.
Here's GraphicGroup- an extension of Group that exposes Stroke/Fill properties just like a Rect, and alternately exposes some convenient style properties. The same code can be added to HGroup and VGroup.
GraphicGroup.as
Here's GraphicGroup- an extension of Group that exposes Stroke/Fill properties just like a Rect, and alternately exposes some convenient style properties. The same code can be added to HGroup and VGroup.
GraphicGroup.as
Thursday, March 4, 2010
Thursday, September 17, 2009
Draggable Spark Panel
The new Spark Panel lacks the built-in drag functionality the old Halo Panel came with. Here's a simple fix:
DraggablePanel.as
(Code link courtesy of tblurb.com, a great site.)
DraggablePanel.as
(Code link courtesy of tblurb.com, a great site.)
Subscribe to:
Posts (Atom)