Winton DeShong
Web / Flash Development

Archive for the 'Frameworks' 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

Using the FluorineFx AMF3 package to communicate with Flex.

Problem

Utilizing SOAP web services to communicate with Flex has many benefits, but it’s slow. Using custom XML can be light-weight, but it’s not standard. What is the best route for someone using ASP.NET?

Source

ASP.NET and Flex Source Code [1.8 MB]

Explanation

Instead of using SOAP or your own custom XML solution, I recommend giving AMF a try. Visit http://osflash.org/documentation/amf.

Read more

9 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

Libraries, Frameworks and Other tools for Flex, Flash and PHP

September 15th, 2008 | Category: ActionScript, Adobe Flash, Adobe Flex, Design Patterns, Frameworks, Workflow

Below are some libraries, frameworks and additional tool I use on a regular basic when developing Flex, Flash, and PHP based applications.

Enjoy! Soon to come…tools I use for Javascript, xHTML, CSS, SEO/SEM, Ruby on Rails, and more…

No comments

iPhone Dev: ABAddressBook ABMultiValue Debugging

August 24th, 2008 | Category: Frameworks, Mobile, Objective-C, iPhone

For those of you who have done work with the ABAddressBook framework, I have found the following method for testing the contents of an ABMultiValue object extremely handy!

  1. void printMultiValue(char *title,id prop, ABPerson *p){

  2. int j,k;

  3. ABMultiValue *multi = [p valueForProperty:prop];

  4. if([multi count])

  5. printf(”         * %s:\n,title);

  6. // sometimes we get NSDictionaries for values.  These

  7. // need to be handled differently (kABAddressProperty does this, for example)

  8. if ([[multi valueAtIndex:0] isKindOfClass:[NSDictionary class]] == YES){

  9. for (k=0;k<[multi count];++k){

  10. NSArray *keys, *values;

  11. keys = [[multi valueAtIndex:k] allKeys];

  12. values = [[multi valueAtIndex:k] allValues];

  13. // get the dictionary name

  14. printf(”            * %s\n,

  15. [[multi labelAtIndex:k] UTF8String]);

  16. for (j=0;j<[keys count];++j){

  17. printf(”               * %s: %s\n,

  18. [[keys objectAtIndex:j] UTF8String],

  19. [[values objectAtIndex:j] UTF8String]);

  20. }

  21. }

  22. }else{

  23. for (j=0;j<[multi count];++j){

  24. printf(”            * %s: %s\n,

  25. //[[multi identifierAtIndex:j] UTF8String],

  26. [[multi labelAtIndex:j] UTF8String],

  27. [[multi valueAtIndex:j] UTF8String]);

  28. }

  29. }

  30. }

No comments

google

google

asus