Archive for the ‘AIR’ Category

Cairngorm 101

Friday, February 5th, 2010

Like many of you self-taught coders, I have read 100’s of programming books and so have become somewhat of a connoisseur or aficionado of this type of reading.

Well, I recently picked up a copy of Professional Cairngorm by Jeremy Wischusen (Wrox Publishing) and while I am not a big fan of Wrox usually, I must say this book is very well written.

Jeremy seems to be one of those guys who writes so well you forget your learning anything and you even forget you are reading.

  • He doesn’t talk about things he hasn’t explained yet (unless he tells you it’s coming later) so you don’t get frustrated thinking it may never come.
  • His writing style reminds me of Joey Lott, very thorough and smooth at the same time. Most technical topic writers seems to go back and forth and sideways while they are writing, as if they are trying to spit out a ton of knowledge on each page. Whereas Jeremy writes smooth like he knows where he is going and he knows how to take you there.
  • He gives the history of Cairngorm in a  way that is surprisingly NOT boring.
  • He not only tells you the “WHAT” that you want to learn, but also gives very complete “WHY”’s as well.
  • I could go on, but I need to get to work!

So if you’re wanting or in most cases “needing” to REALLY learn Cairngorm, I’d take a look at his book, it is very good.

Thanks Jeremy for that great piece of writing that surely will clear up a lot of confusion surrounding Cairngorm amongst the lower ranks (guys like myself). At the very least it has made me appreciate the Architecture and given me a solid understanding of why and when I would want to use it or any other micro-architecture for that matter, as well as giving me solid pros and cons relative to it’s use when compared to not using it.

I might also mention that a great companion book to go with it would be ActionScript 3.0 Design Patterns by Joey Lott and Danny Patterson. I have found no book as good as it for explaining Design Patterns as they are used in ActionScript.

For a general design pattern book, I also like “Head First Design Patters” Java Based and very good. Also comes with a great poster “Your Brain on Design Patters” that I put up in my home office that is a quick index of design patterns and their intended uses.

If you enjoyed this post, make sure you subscribe to the SDFlex RSS feed!

MVC Frameworks for Flex

Thursday, June 11th, 2009

I’ve been looking for partners who will compliment my skills and or looking for work in a company with AS3 coders who can really help me to grow as a professional….

This has led to a question that pops up in every interview… What is your experience with:

  1. Cairngorm
  2. PureMVC
  3. and now MATE (asfusion).

I already knew a little about Cairngorm and PureMVC, but just looked into MATE (as a company that started an interview process with me is using it…) and this triggered a thought I had ruminated on before, but now the ruminations are churning again…

Since I write almost 100% AS3 and use the Flex Framework almost 100%, WHY do I need a ridged MVC framework???

They all seem to add needless complexity to the task.

I asked Joey Lott (the guy I most respect for anything ActionScript) and he said, “I don’t use Cairngorm. I think it is unnecessarily complex.”  I think in the context of my question, that could also apply to PureMVC and possibley MATE.

So having an ActionScript rock star say that, added to my feelings that were the same, I now needed to find an answer to WHY all these companies require it or even WANT to use it (the micro-architecutre frameworks)…

Here’s what I came up with:

Since companies with many programming or developer employees have to all be able to work together and since they all come from different backgrounds of organizational styles, they simply must use a ridgid framework so everyone will be on the same page. Even at the cost of extra complexity, it saves time in the long run (so the logic goes)…sort of a design pattern for human resource organization more than anything else.

However, I believe that if the CTO sat down with the lead developers at the company formation or reformation, (speaking of Flex based projects only here), they could come up with organizational guidelines that would maximize structure without all the unnecessary complextiy.

Sort of like, ok, at Acme, Inc., this is how we set up projects. We use MVC in general and bla, bla, bla….you get the point.

I mean in PureMVC it takes five files to make a  service call, where it takes 5 lines in the Flex Framwork… the only potential problem in multi-programmer environment (for the 5 line flex framework solution) would be having an organizational model so everyone knows WHERE, WHEN the service call will be made (so they can find it easily for maintenance)…etc…

That’s my view anyway.

If you enjoyed this post, make sure you subscribe to the SDFlex RSS feed!

AS3 Libraries

Wednesday, February 11th, 2009

I don’ t know about you, but when I am trying to create something new, I like to see what’s out there already, sort of a “get the juices flowing” thing. Well, I was going through my AS3 code libraries, getting rid of the ones I don’t use and updating the ones I do use….and that led to a AS3 libraries search.

You can go to Google Code and find a LOT of cool code libraries, but unfortunately it isn’t MANDATORY to post your code library there. So that means you will have to scour the blogs and put togehter what you need.

But what if someone is just starting out, and they want to just go out and grab all the coolest libraries and gadgets out there for thier coding pleasure??

Look no further… I found this in about 20 minutes and I would say it is a veritable gold mine of class libraries that you most likely will use or know someone who uses some of them.

I found it here: Sean Moore’s Blog

Now don’t say no one ever helped you out on the way up!

If you enjoyed this post, make sure you subscribe to the SDFlex RSS feed!

Flash Media Server 3

Tuesday, July 1st, 2008

How would you like to be able to serve streaming video files from your desktop computer? Ok, I agree, probably not the safest thing… and now with hosts like inflexus offering $9.95/mo Flash Media Server hosting, why would you??

 But if you’re just that kind of developer and you just have to try it to make sure you can do it… well then you’re in luck.

First of all, you can view a decent tutorial by Dan Florio on how to set things up. The only problem with the tutorial is his explaination of the folder system (I suggest reading the readme.txt file as it (at least in my opinion) is very clear and easy to implement. I found his explaination leaving me with more questions than answers…

Also, when he shows you how to set up your application so you can have people access your streaming video from any web host, he fails to mention that you have use your public IP address (if you want anyone to be able to view it from anywhere on the net).

He shows you how to view it from over the net, but from your own network, so when you try to have others (in locations other than your own network) they will not be able to load it.

You can get your public ip by going to ipchicken.com , you would use this IP in the application you actually deploy on the web.

As far as licensing goes, you can do it, you just can’t have more than 10 concurrent connections, which for development purposes, you probably wouldn’t anyway.

If you enjoyed this post, make sure you subscribe to the SDFlex RSS feed!

Amazon Web Services Continued

Friday, June 27th, 2008

Ok, I am LAME…. Here is the CORRECT destination configuration ( in the proxy-config.xml ) to make the webservice work from within Flex using the WebService tag plus LiveCyle Data Services ES…


<destination id="amazon" adapter="soap-proxy">
<properties>
<url> http://webservices.amazon.com/AWSECommerceService/
AWSECommerceService.wsdl
</url>
<soap>http://soap.amazon.com/onca/soap?Service=AWSECommerceService
</soap>
</properties>
</destination>

I was calling the <url></url> above, <wsdl></wsdl>... and I had not inlcuded the <soap></soap> at all since I thought Flex Framework did that all by iteself….once I changed it to <url></url> and added the <soap> tag, everything worked fine.

I hope this helps other flex developers, as I found almost zilch online.

If you enjoyed this post, make sure you subscribe to the SDFlex RSS feed!