Recent Articles

Don’t skimp on the curly braces wrapping if statements or other one-liner code blocks in Javascript because minifying/packing that Javascript can lead to avoidable and hard to track down errors, especially in IE which surprisingly cares a lot.
I’m super tired of seeing this bad practice and having it waste my time. You’re just lazy and [...]

continue reading »

If you are loading images dynamically using a Flex 3 Image control and attempting to manipulate the actual bitmap data, say for instance to draw a reflection or auto-center an image, you might have encountered the following runtime exception: “SecurityError: Error #2123: Security sandbox violation: Loader.content: … No policy files granted access.”
This has to do [...]

continue reading »

I’m not sure that I need to write anything about the importance of including social sharing tools in any project destined for more than a few people to use, but in case you think I do, here goes:
If you make something that peoples reputations could benefit from being associated with and that thing [...]

continue reading »

Problem
You want a selected item in a Flex 4 List control to keep its highlighting even when a mouse rollout event occurs. By default Flex 4 Lists will execute the rollout behavior even on a selected item which can have unexpected consequences such as deselecting an item.
Solution
There’s no built-in option at the time of this [...]

continue reading »

Very often there will be multiple environments that your application will be running under whether just for testing purposes or even multiple deployment domains. When running in a dev or test environment it can be useful or necessary to mock input/output or even just modify any urls your app is using if relative addresses aren’t [...]

continue reading »

Ok, so the real problem here is that the Adobe Flash Player plug-in for the Mac has horrible performance issues (read: sucks) compared to its PC counterpart for reasons easily justified yet still incredibly painful for Flash/Flex developers. In this case, especially if you are doing anything with the Microphone, Camera or Video classes you [...]

continue reading »

Problem
Flex 4 Lists pack a lot of awesome, especially compared to Flex 3 Lists. One of the new (AFAIK) built-in features are keyboard shortcuts for navigating through items in the list including enabling the ability to easily live search through items in the list’s dataProvider. For the Event Planner of vokle.com I needed to show [...]

continue reading »

Problem
There are many instances where I need to allow a user to enter free-form text but the amount of text they can enter is limited to a certain number of characters, obviously it is good user experience design to provide feedback to the user on how many characters they have left available to enter so [...]

continue reading »

I still see a steady stream of  questions on Flex and ActionScript discussion boards related to effectively using custom events. I can tell you from many hours of experience that custom events are the fundamental basis for transmitting information in any mildly complex Flex/AS3 project and whether they’re Notifications in PureMVC or the wiring for [...]

continue reading »