Winton DeShong
Web / Flash Development

Archive for the 'PureMVC' Category

PureMVC Debug Console by Kap Lab

I recently stumbled upon a pretty cool project released by Kap Lab called PureMVC Console. The debugging console allows you to track various aspects of your single/multi-core PureMVC applications in a convenient manner. Setup is simple and the developer guide shows you how to easily switch your project between production and debug mode via compiler directives. During run-time of your application, you can hit a simple key command to bring the debug console up. This project is definitely worth a look!

No comments

File uploading in a PureMVC application

Problem Summary

File browsing/uploading/saving is a common task. What is the best way to implement file handling while using the PureMVC framework?

Solution Summary

Below I propose a foundation for handling file browsing/uploading/saving in a single-core PureMVC application.

Explanation

In both single-core and multi-core PureMVC applications, I tend to keep all of the FileReference/FileReferenceList event handling in a Proxy. This allows for application/module -wide handling/presentation of errors related to file uploading. It also abstracts the code for re-use in all of your components in the application.

For more, check out my Flex Cookbook post at http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&postid=12706&loc=en_US&productid=2.

Project source files

No comments

Authentication using Flex and the PureMVC Framework

Problem Summary

Almost all of the projects I work on in Flex utilize some form of authentication. So I needed a base flex project that had an authentication wrapper built with the PureMVC Framework.

Solution Summary

Being that I use PureMVC in all of my flash/flex development, I have several base projects on hand to get a project rolling. If you use PureMVC or are interested in getting your feet wet, here you go!

Explanation

For this example, I am going to assume some underlying knowledge of OOP, Flex, and PureMVC. For simplicity sake, I removed any flex remoting specific code (ex. SOAP, XML, AMF, etc…). In another example I’ll demonstrate how to setup projects using both SOAP and AMF based web services.

Requirements:

1. Flex Builder / Eclipse
2. PureMVC Framework (source or SWC) http://www.puremvc.org
3. Understanding of Object-oriented principles.


In support of the Flex Cookbook, the source code and further explanation will be provided on the Adobe Developer Connection website.
Source code - ADC Flex Cookbook

1 comment

google

google

asus