From ‘Pineapple’ to ‘Footprint’! Written on December 29, 2008, by admin.

In older posts, I describe that what is my Pineapple. In this post I notify that my Pineapple project code name has been changed to Footprint. Footprint’s icon, splash and prototype is here:

Read more from the Uncategorized category. If you would like to leave a comment, click here: Comment. or stay up to date with this post via RSS, or you can Trackback from your site.
Social Bookmark : Technorati, Digg, de.licio.us, Yahoo, Blinkbits, Blogmarks, Google, Magnolia.

Cairngorm asynchronous command Written on December 22, 2008, by admin.

I decided to develop Pineapple project in MVC pattern. When I wanted to select a MVC framework, I compared PureMVC and Cairngorm. After spending times and playing with PureMVC I found it complex and hard for me!
I tested Cairngorm and red many articles and watched some video tutorials. I did not find a good help for PureMVC, but for Cairngorm I found many helps and tutorials. Cairngorm seems better than PureMVC!
But when I wanted to develop initializing section, I encountered a lake in Cairngorm event/command. To initialize the application, SecondCommand must have been run when FirstCommand completed. Whereas Cairngorm doesn’t support this, I extended Cairngorm Event and command Classes.
I extended CairngormEvent class and named it “CairngormAsyncEvent” that dispatches Complete and Error events. To listen these events I wrote a new class “AsyncCommand” that indicates two function for these events propagation.
To work with these classes follow this:

cairngorm-async-result

Notice that in FrontController class, ThirdEvent registration command has false value for useWeakReference argument to listen event propagation after timeout.

Read more from the Cairngorm, Flex category. If you would like to leave a comment, click here: Comment. or stay up to date with this post via RSS, or you can Trackback from your site.
Social Bookmark : Technorati, Digg, de.licio.us, Yahoo, Blinkbits, Blogmarks, Google, Magnolia.

Updated to 2.7 Written on December 21, 2008, by admin.

My blog engine, WordPress, updated to 2.7 version. When I decide to update, I grabbed my old post and re-enter theme in new db (and post write date have been changed).

Farid, my best friend, renew you blog and solicit me to update my blog engine and theme. He buy a new Mac Book Pro, but can’t persuade me to change my laptop! My laptop is a Dell Inspiron 6400, I bought it in February 2007. I call it Khosro!
Don’t worry Khosro, I adhere to you!

Read more from the miscellaneous category. If you would like to leave a comment, click here: Comment. or stay up to date with this post via RSS, or you can Trackback from your site.
Social Bookmark : Technorati, Digg, de.licio.us, Yahoo, Blinkbits, Blogmarks, Google, Magnolia.

Cairngorm explanation Written on December 20, 2008, by admin.

I described something about MVC in older post and now explain a framework that help to develop flex application in MVC pattern.

Cairngorm is the lightweight micro-architecture for Rich Internet Applications built in Flex or AIR. The benefits of the Cairngorm architecture are realized when developing complex RIA applications with multiple use-cases and views, with a team of developers, and with a multi-disciplinary development team that includes designers as well as creative and technical developers.

Cairngorm has 5 primary components that are used with Flex RIA solutions:

- ModelLocator: a repository for global data and global access
- Services: a respository of pre-configured RDS components
- Commands: non-UI components that process business logic
- Events: custom events that trigger the business objects [Commands] to start processing
- Controller: component needed to route business events to commands for processing

This diagram describe relationship of this components:

Cairngorm Workflow

Model:
- Is a global singleton repository for shared or global data (singleton means that only instance of the class should exist)
- Does not load or persist data to a permanent data store
- Does not contain business logic
- Serves as caching and access location only
- Caches custom variables/data specific to application
- Supports data binding for auto-notifications of data changes to views

Event:
- Many events take place in Flex applications, but Cairngorm is only concerned with Business Events
- Custom events can be used to transport or package data to the recipient(s)

View:
- Views dispatch business events to the business layer
- Views are never aware of the FrontController, Commands, or Delegates, or the Services repository.
- Views render data stored in the Model layer and announce user gestures

Commands:
- The Control layer relies on Commands to manage business logic and respond to Business Events
- Each Command class represents a specific business feature with associated business logic and processing
- Commands update the ModelLocator with new data or changes to existing data
- Each Command class represents a specific business feature with associated business logic and processing
- All Commands have the same entry point to initiate or start business processing: execute()
- Command implementations have class names to that are equivalent to Business Events (e.g. LoadThisEvent and LoadThisCommand)

FrontController:
- Intercepts dispatched business events and forwards each event instance to the appropriate Command instance for processing
- Is a registry of event-to-command mapping
- Is the router for business event
- Provides a solution that allows the View and Control layers to connect using event delegation

Business:
- Is used to create a global, singleton registry to centralize all instances of Flex RDS components used in an application (HTTPService, WebService, RemoteObject, Custom RDS classes)
- Supports easy lookup of services by name
- Should never be used outside the Control layer

To learn more about how to use of Cairngorm, you can see this video tutorial by David Tucker.

Read more from the Cairngorm, Design pattern category. If you would like to leave a comment, click here: Comment. or stay up to date with this post via RSS, or you can Trackback from your site.
Social Bookmark : Technorati, Digg, de.licio.us, Yahoo, Blinkbits, Blogmarks, Google, Magnolia.

Adobe Flash Platform updated! Written on December 20, 2008, by admin.

Adobe MAX update, as we can feel the huge presence of Flash player across all platforms and devices. We can easily say, Flash Is Now A Platform.

Aligned with Adobe MAX 2008, Adobe released some update for flash platform. AIR 1.5, Flex 3.2, Flex Builder 3.0.2, Flash Media Server 3.5 and Cocomo Beta, unveiled!

Get this release: AIR 1.5, Flex Builder 3.0.2 update, Flash CS4 update, Flash Media Server and Cocomo Beta.

Thank you Adobe! ;)

Read more from the AIR, Flash, Flex category. If you would like to leave a comment, click here: Comment. or stay up to date with this post via RSS, or you can Trackback from your site.
Social Bookmark : Technorati, Digg, de.licio.us, Yahoo, Blinkbits, Blogmarks, Google, Magnolia.

2008 © Copyright Code is Joy - Powered by Wordpress