Enough waffle Jake, just give us the code. Ok, I've been teasing you long enough. Here's the download of both the Flex source code and the Notes database for the Contact Manager app we've been looking at.
Download the Zip file and extract the NSF to your server and the Zip within the Zip to your PC somewhere. Then, from within Flex Builder, go to File -> Import and browse to this Zip. This will import all the code as a ready-to-compile project.
Before you run it - once it's imported - open the Constants.as file from the root "/src" folder and then change the default path to wherever you put the NSF. Save the file and hit the compile/run/play button (green triangle). It should compile and run. You can then start adding documents to the backend database in Notes. Et voila.
As a recap, here are the ten posts I've made over the last month or so, which describe various aspects of the code:
- Building Your Views Remotely
- Extending Basic View Behaviour
- Using Components To Simplify Your Code
- Opening Documents From a View
- Managing Document Attachments
- Multiple File Uploads (note: read the comments to this post if you plan on using it!)
- Alert Is To Flex as MessageBox Is To LotusScript
- Display Column Values As Icons
- Creating an Icon Library
- The Form Container
What it's not is a step-by-step guide that let's a beginner get to grips with Flex development. If you're looking for a more in-depth guide to learning Flex basics then you could try this comprehensive series of screencasts.
What it is is an ill-thought-out series of ramblings with very little coercion. By making it a numbered series I may well have given the wrong impression. Sorry. While each of the ten posts has its own merits there's little point reading them in order, really. Although, if you're going to pick apart the Flex app itself it might be worth doing so.
Even if you have no use of a Contact Manager (heck, if you needed a contact manager then this probably isn't of much use anyway) the Flex app represents a conglomeration of as many of my current "best practices" as I could squeeze in. The code contains a lot of the goodness that I've learnt over the past year or more of my love affair with Flex. Primarily it demonstrates the ever-important concept of using re-usable components wherever possible.
Enjoy. If you have any questions, let me know...