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 commentsFile 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.
No commentsUsing 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.
9 commentsAuthentication 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
Below are some libraries, frameworks and additional tool I use on a regular basic when developing Flex, Flash, and PHP based applications.
- 3D
- Animation
- Components
- Flex Component Kit (Included in Flex 3 SDK)
- Yahoo! Astra Library (Flash)
- Yahoo! Astra Library (Flex)
- FlexLib
- Debugging
- Documentation
- asDoc
- Editors
- Frameworks
- Remoting
- Source Control
- Style
- Utility Libraries
Enjoy! Soon to come…tools I use for Javascript, xHTML, CSS, SEO/SEM, Ruby on Rails, and more…
No commentsiPhone Dev: ABAddressBook ABMultiValue Debugging
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!
No comments
void printMultiValue(char *title,id prop, ABPerson *p){
int j,k;
ABMultiValue *multi = [p valueForProperty:prop];
if([multi count])
printf(” * %s:\n“,title);
// sometimes we get NSDictionaries for values. These
// need to be handled differently (kABAddressProperty does this, for example)
if ([[multi valueAtIndex:0] isKindOfClass:[NSDictionary class]] == YES){
for (k=0;k<[multi count];++k){
NSArray *keys, *values;
keys = [[multi valueAtIndex:k] allKeys];
values = [[multi valueAtIndex:k] allValues];
// get the dictionary name
printf(” * %s\n“,
[[multi labelAtIndex:k] UTF8String]);
for (j=0;j<[keys count];++j){
printf(” * %s: %s\n“,
[[keys objectAtIndex:j] UTF8String],
[[values objectAtIndex:j] UTF8String]);
}
}
}else{
for (j=0;j<[multi count];++j){
printf(” * %s: %s\n“,
//[[multi identifierAtIndex:j] UTF8String],
[[multi labelAtIndex:j] UTF8String],
[[multi valueAtIndex:j] UTF8String]);
}
}
}