RSS LinkedIn Twitter

Archive for August, 2009

I’m about ready to sleep on my ShortcutManager, I figured I might as well finish off the series. I added context to it, while still maintaining backward compatibility with the non-context enabled version. I don’t think I posted it, so it probably won’t matter so much to my readers. For those who haven’t read the […]

Wednesday, August 19th, 2009 at 19:43 2 comments

I’ve put some more thought into my shortcut manager, and have decided on a way to implement the shortcut context, as well as curb the Dictionary explosion that my previous architecture would have had. The new version uses one Dictionary to store all functions, the keyCode, combo keys, and context is all encoded into the […]

Wednesday, August 19th, 2009 at 17:07 0 comments

Strictly speaking, bit strings are not nearly as easy to understand as named boolean variables; but there are situations when they can simplify or eliminate the need for long boolean expressions. Consider my recent post about the ShortcutManager. There are three control keys that may or may not be pressed at any given time. This […]

Wednesday, August 19th, 2009 at 14:29 0 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

Although a TCP client is fundamentally different from a TCP server, setting up the socket is very much the same. For a server, we called these methods in this order: socket()→bind()→listen()→accept(), followed by sequences of read() and write(). For a client we will call these methods in this order: socket()→connect(), followed by sequences of write() […]

Tuesday, August 18th, 2009 at 10:15 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

I’ve finally started a serious investigation into Flex 4. Unfortunately it takes me a while to get around to these things, especially in the middle of a project with 2 developer casualties thus far. The project is winding down a bit, the interaction designers are finally off the project, and I’ve had a bit more […]

Monday, August 17th, 2009 at 21:56 2 comments