Calendar

September 2006
S M T W T F S
« Aug   Oct »
 12
3456789
10111213141516
17181920212223
24252627282930

Tag Cloud

Categories

Archives

Recent Posts

Recent Comments


« Xbox Charity Auction Results | Main | ImageToolTip »

New Cairngorm Diagram

By Rich Tretola | September 22, 2006
2,818 views

Evan from flexheads.com has posted a new Cairngorm diagram.
You can download it here

cairngorm2_rpc_thumblarge.gif

Excellent work Evan!!

Rich

Topics: Cairngorm | 7 Comments »

7 Responses to “New Cairngorm Diagram”

  1. vinay pilllay Says:
    April 3rd, 2007 at 2:30 am

    Hi,
    I too love cairngorm and have started implementing it
    I learnt most of it by looking at this diagram
    But there are some unresolved issue and i have no clue how to resolve it
    Can you help me

    i find diffcult to use a timer in cairngorm architecture

    It would be highly appreciated if u could build for me a small upload functionality in cairngorm architecture

    Thank you in advance

    Reply to this comment

  2. everythingflex Says:
    April 3rd, 2007 at 5:52 am

    I am not sure what your use of timer has to do with Cairngorm? Can you provide an example of how you are trying to use it?

    Reply to this comment

  3. kelvin Says:
    February 16th, 2008 at 8:45 am

    Excellent explaination

    Reply to this comment

  4. Sunil Says:
    May 22nd, 2008 at 8:04 pm

    Hi there,

    I just ordered your Air book from Amazon last night, what a co-inky-dink that I ended up on this blog post of yours today looking for some insight.

    Above someone else commented that they are finding it difficult to use a Timer in a Cairngorm project. I am working on my first Cairngorm project and have come to the same conclusion with the Timer object and Cairngorm:

    I’m putting a Timer in my ModelLocator, so I can repeatedly fetch some data from an HTTPService. My question is where should I put the TimerEvent handler? My first thought was to also put the event handler method in the ModelLocator class.

    I did some searching to see if anyone has talked about this sort of thing, and ended up here :)

    It seems natural to put the Timer object, in the ModelLocator, so my app’s components can turn the timer off, change the timer interval, etc… but for some reason it doesn’t feel right to put the TimerEvent handler in the ModelLocator. Thought’s anyone?

    Cheers,
    Sunil

    Reply to this comment

  5. Sunil Says:
    May 23rd, 2008 at 10:05 pm

    Wee! I answered my own question… (I think)

    1 )Declare the Timer object in the ModelLocator class as a member variable.

    2) In my Main.mxml class I called timer.addEventListener(TimerEvent.TIMER, timerHandler, false, 0, true) in my creationComplete method.

    3) And then defined the timerHandler() method in Main.mxml.

    That seems to be the sane thing to do ;)

    Regards,
    Sunil

    Reply to this comment

  6. creacog Says:
    December 3rd, 2008 at 12:50 pm

    @ Sunil,

    Approach used by the Adobe guys who wrote Apprise ( http://code.google.com/p/apprise ) …

    Store the timer instance in the model.
    Within an initialisation command:
    * Create the timer instance
    * Add an event listener using an inline or anonymous function that simply creates and dispatches a Cairngorm event
    * start the timer

    http://code.google.com/p/apprise/source/browse/trunk/src/com/adobe/apprise/commands/InitCommand.as

    I’m not a fan of inline functions (http://www.gskinner.com/blog/archives/2006/07/as3_weakly_refe.html), but if a single instance of the timer is created that lives for the life of the application, I guess should be ok. Better than a handler in Main.mxml imo.

    Reply to this comment

  7. philko Says:
    December 4th, 2008 at 3:40 pm

    creacog –

    Your timing is INCREDIBLE. One day after you posted, I needed to implement a timer.
    Thanks!!!

    Reply to this comment

Comments