The CSSLoader Class (v1.0)
AS3 is a wonderful thing, but it can be really long-winded sometimes when you’re trying to achieve something simple – the perfect example being the replacement of AS2′s getURL() class with a series of listeners. I know why it has been set up this way, I understand why it’s better that everything follows a uniform methodology and I do wholeheartedly agree with it, but there is no getting around the fact that you can get bogged down writing the same long-winded code over and over again. Frankly, it can be a pain in the ass and can sap the fun out of simple tasks.
Sometimes I get around these chunks of code using snippets (see Lee Brimelow’s tutorial on how to set up snippets in Flex Builder), but sometimes the code is crying out for a simple class to be made – in my opinion, loading external stylesheets is one of these times.

