Jan 12
The back story
(skip ahead to the solution)
So I have been doing quite a bit of work lately with continuous integration and auto-builds using Hudson (which I am really liking). And one of my goals is to have applications abstracted in such a way that the same build that is used for local development can also be used in QA, staging and deployment, but be fed different settings appropriate for each environment. That way when you addressing issues that seem to always crop up when you deploy to live, you don’t have to wonder what’s different between the different builds you would normally have to make to incorporate the varying environment settings.
Continue reading »
written by Mac at 12:41 am, Jan 12, 2011 \\ tags: Actionscript, AIR, FlashVars, Flex, FlightXD, Hudson
Apr 01
So I had a question about using my prototyped stripWhitespace function for Strings in AS3. Since it was written for actionscript 2 it has a few different problems when using it in AS3. First of all, variables are not typed at all, which is almost required in AS3. Next, it uses prototyping, which in AC3 should really only be used in very special circumstances. So I updated the function for use in AS3, using a utility class instead. Take a look.
Continue reading »
written by Mac at 12:02 pm, Apr 1, 2008
Jan 09
So the other day I was using a DataGrid to show a data-set from an ArrayCollection, and I thought a great visual cue would be to highlight specific rows based upon the data like this:

But after digging and searching through the docs, discovered to my surprise that the DataGrid component did not have this capability. So I did what every good developer does first, and started Googling, expecting to find someone who had faced this problem and solved it. Continue reading »
written by Mac at 1:02 am, Jan 9, 2008 \\ tags: Actionscript 3, AS3, ColoredDataGrid, Custom Component, DataGrid, Flex