RSS LinkedIn Twitter

Archive for the ‘Flex Components’ Category

Reading and writing files is something I do in almost every AIR application I write. It has become my language of choice to write batch file processing applications in. Here are a few of the methods I use most commonly when reading and writing files. These are divided into two main groups, binary files and […]

Thursday, March 10th, 2011 at 20:36 0 comments

I needed a link control that would display a dotted-underline on hover. To achieve this I overrode the rollOverHandler and the rollOutHandler of a standard LinkButton. Inside the rollOverHandler I used the graphics API to draw a dotted underline beneath the control’s textField. Here’s an example: There are some magic numbers, but tweaking them to […]

Wednesday, June 9th, 2010 at 14:35 3 comments

Just for fun I wrote a simple ShortcutManager this evening, it turned out to be an interesting little project and taught me a few things about Functions. It’s by no means finished, I’ll detail a few planned improvements after I go over it’s usage. My goals were to have a static registry that the application […]

Tuesday, August 18th, 2009 at 22:08 0 comments

I won’t exactly be extending a SkinnableComponent in this post, I’ll be extending the Button (which extends SkinnableComponent) and creating a few new skins for it. Extending the SkinnableComponent is almost identical to extending the SkinnableContainer (see my previous post). You won’t need the contentGroup, of course. I wanted to illustrate the power of Flex’s […]

Monday, August 17th, 2009 at 23:05 0 comments

I’ve just created my first Flex 4 component, and loved doing it. It’s not entirely finished, but I wanted to share what I learned for those who may follow after me. In the component proper, some things to remember: 1. Extend SkinnableContainer. 2. Declare the skin states using metadata brackets. In my case: [as3][SkinState("collapsed")][SkinState("expanded")][/as3] 3. […]

Monday, August 17th, 2009 at 22:28 0 comments