Currently Reading

Image of Derivatives Demystified: A Step-by-Step Guide to Forwards, Futures, Swaps and Options (The Wiley Finance Series)

Image of Working Effectively with Legacy Code (Robert C Martin)

Image of Coders at Work: Reflections on the Craft of Programming

Image of Succeeding with Agile: Software Development Using Scrum (Addison-Wesley Signature)

Image of iPhone UK: The Missing Manual

Image of My Shit Life So Far

Recently Read

Image of Beginning iPhone 3 Development: Exploring the iPhone SDK

Image of Cloud Atlas

Image of Refactoring: Improving the Design of Existing Code (Object Technology Series)

Image of Clean Code: A Handbook of Agile Software Craftsmanship (Robert C. Martin)

Image of ActionScript 3.0 Design Patterns: Object Oriented Programming Techniques (Adobe Developer Library)

Image of iPhone Advanced Projects (Books for Professionals by Professionals)

Image of Advanced Actionscript 3 with Design Patterns

Image of UML 2 for Dummies

Image of The Secrets of Consulting: A Guide to Giving and Getting Advice Successfully

Image of Test Driven Development (The Addison-Wesley Signature Series)


June 10, 2010

Converting a MX component to a Spark Component.

Filed under: ActionScript, Components, Flex, Test Driven Design — Anthony @ 12:27 am

In this brief set of posts I wanted to document how to convert a simple MX component over to a Spark component. I have chosen to convert the MX ColorPicker because it is one of the components that Adobe hasn't moved over to the Spark framework yet as well as being the component that I used to learn the Flex3 Framework. You can see the outcome and view the source of that in my previous posts from a couple of years ago here and here

Below you can see the three components.

The Spark component does all the stuff the old MX one does like keyboard movement, selectedIndex, selectedColor, colorLabel, etc.. In addition I also added the ability to set/get the selectedItem and dispatching indexChange events.

To begin with lets look at what the current color picker does. (more...)

April 29, 2010

FlexUnit4 & Parsley

Filed under: Flex, Test Driven Design — Anthony @ 11:14 pm

For the last six months I have been working on a rather large enterprise application that uses parsley as it's main Dependency Injection Framework. This has led to many complex class' that contain multiple injected models, VO and other elements. Recreating these items inside test harness can become very cumbersome if you have to create a large injection heirarchy. Consider the following example. (more...)