RSS LinkedIn Twitter

Archive for the ‘Flex 3’ 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. There’s no need to point out that the generateRandomNumber method could be optimized. I know. My specific […]

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

This post details the steps I took to install Red5 from source on a CentOS 5.5 base server. 1. Install Java using yum. (The -y flag provides a ‘yes’ answer to all prompts.) 2. Install the Apache ant binary. I downloaded the most recent release one directly from Apache’s archives. The version installed using yum […]

Friday, May 21st, 2010 at 21:56 31 comments

Starting with certain versions in the 9.0’s of Flash player, socket communication in Flex began adding additional security measures. The one I am going to discuss in the post is the socket policy file. In short, the socket policy file is an XML file that is served by default from port 843 and contains information […]

Tuesday, February 9th, 2010 at 00:04 0 comments

Client-server programming is one of my passions, and I enjoy doing it in almost any language. Which makes it fitting that Flex (ActionScript) is one of my favorite languages to develop in, because it truly is a client-side technology which pretty much means it’s open to just about any type of backend server. I suppose […]

Monday, February 8th, 2010 at 22:39 7 comments

One of my ongoing weekend projects is an AIR chat application, recently rechristened “JUICE” a.k.a. “John’s Ultimate Internet Chat Experience”. I realize that may only be the case for myself, but the project has been very educational and entertaining for me. The initial release used AIR/Flex as the front-end, ColdFusion and MySQL for the backend, […]

Tuesday, December 22nd, 2009 at 14:05 9 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

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