Getting started with Flex

A fellow developer that I know asked me for a list of Flex/AS3 books to get him started with Flex so I figured I'd post them here for others as well.


2 books that I like are
Object-Oriented ActionScript 3.0
ActionScript 3 Design Patterns


There are also a lot of very good online resources and a lot of them are FREE! Here's a list of a few off the top of my head. I know there are many more than this so if anyone knows of any that are especially good please let me know by leaving a comment.


Tip! - for those of you that are still parsing xml the old fashion way with all that firstChild.nextChild.yadaYadaYada you should check out e4x! The team at Adobe has really done a great job at making short work of parsing xml.
e4x makes it much easier to parse xml and thus reducing development time!

e4x is great and all but it's not the only way. My preferred method is to load the xml results into an array collection although both ways allow you to reference each xml node by it's name. Here's a sample...


  var ws_resultHandler:WebServiceHandler = new WebServiceHandler(this, _WSDL, "handleResults", "ws_faultHandler");
   ws_resultHandler.CallMethod("getStuff", null);   


  public function handleResults(event:ResultEvent):void
  {
       _resultArray = ArrayCollection(event.result);

       var i:uint;
       for (i=0; i < _resultArray.length; i++)
       {
            trace(_resultArray[i].itemName);
            trace(_resultArray[i].itemDescription);
            //etc,etc,etc
       }
  }


 del.icio.us  Stumbleupon  Technorati  Digg 

 

What did you think of this article?




Trackbacks
  • No trackbacks exist for this entry.
Comments
  • No comments exist for this entry.
Leave a comment

Submitted comments will be subject to moderation before being displayed.

 Enter the above security code (required)

 Name

 Email (will not be published)

 Website

Your comment is 0 characters limited to 3000 characters.