RSS LinkedIn Twitter

Archive for the ‘Flex 4’ Category

There are two ways to load content into Flex’s HTML control. The first is to set assign the htmlText property some HTML. The second is to set the location property to the URL of the site you wish to load. The two are mutually exclusive, as described in the ActionScript 3 Reference here. Speaking specifically […]

Saturday, March 12th, 2011 at 07:59 1 comment

Here’s a pair of methods I use to generate random usernames for an online test. They could be used to generate random strings for any purpose, though. len is the length of the random string you want returned. public static function generateRandomString(len:uint = 1, userAlphabet:String = “abcdefghijklmnopqrstuvwxyz”):String{ var alphabet:Array = userAlphabet.split(“”); var alphabetLength:int = alphabet.length; […]

Thursday, March 10th, 2011 at 21:08 0 comments

I love being able to drag-and-drop files or directories onto my AIR apps and have it recursively process all of the files in the directory structure. This is handy for batch file processing utilities, which seems to be a common theme in many of my AIR apps. The first thing you need to do is […]

Thursday, March 10th, 2011 at 20:57 3 comments

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 was much more impressed with Flex 4 Cookbook, from Joshua Noble, et al, than I was with Flex 3 Cookbook. I haven’t had a chance to try out all of the code snippets yet, but there are lots of good ones. I was especially glad that the authors were able to maintain focus on […]

Monday, February 7th, 2011 at 21:32 0 comments

I finished my final Flex 3 project a couple months ago and have finally been able to start digging into Flex 4 for my current projects. There are two in particular that involve a number of input-type popups. The first thing I noticed about these popups (which were based on either Group or VGroup) was […]

Wednesday, December 15th, 2010 at 10:11 2 comments

I recently purchased the book Adobe Flash Builder 4 and Flex 4 by David Gassner and will be publishing a complete review when I’m done with the book. I’m going through it looking for the coverage I feel would be most helpful for those experienced with Flex 3. Even more specifically, those like myself, who […]

Friday, June 11th, 2010 at 22:56 1 comment

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

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