Source code for ArcGIS Viewer for Flex - a great application framework for web applications.