<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: New Cairngorm Diagram</title>
	<atom:link href="http://blog.everythingflex.com/2006/09/22/new-cairngorm-diagram/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.everythingflex.com/2006/09/22/new-cairngorm-diagram/</link>
	<description>News and Information about Adobe Flex &#38; Adobe AIR by Rich Tretola</description>
	<pubDate>Tue, 06 Jan 2009 07:06:22 +0000</pubDate>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>By: philko</title>
		<link>http://blog.everythingflex.com/2006/09/22/new-cairngorm-diagram/#comment-33963</link>
		<dc:creator>philko</dc:creator>
		<pubDate>Thu, 04 Dec 2008 19:40:34 +0000</pubDate>
		<guid isPermaLink="false">http://control-access8.com/~eflex/wordpress/?p=90#comment-33963</guid>
		<description>creacog - 

  Your timing is INCREDIBLE. One day after you posted, I needed to implement a timer. 
  Thanks!!!</description>
		<content:encoded><![CDATA[<p>creacog - </p>
<p>  Your timing is INCREDIBLE. One day after you posted, I needed to implement a timer.<br />
  Thanks!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: creacog</title>
		<link>http://blog.everythingflex.com/2006/09/22/new-cairngorm-diagram/#comment-33863</link>
		<dc:creator>creacog</dc:creator>
		<pubDate>Wed, 03 Dec 2008 16:50:46 +0000</pubDate>
		<guid isPermaLink="false">http://control-access8.com/~eflex/wordpress/?p=90#comment-33863</guid>
		<description>@ 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.</description>
		<content:encoded><![CDATA[<p>@ Sunil,</p>
<p>Approach used by the Adobe guys who wrote Apprise ( <a href="http://code.google.com/p/apprise" rel="nofollow">http://code.google.com/p/apprise</a> ) &#8230;</p>
<p>Store the timer instance in the model.<br />
Within an initialisation command:<br />
* Create the timer instance<br />
* Add an event listener using an inline or anonymous function that simply creates and dispatches a Cairngorm event<br />
* start the timer</p>
<p><a href="http://code.google.com/p/apprise/source/browse/trunk/src/com/adobe/apprise/commands/InitCommand.as" rel="nofollow">http://code.google.com/p/apprise/source/browse/trunk/src/com/adobe/apprise/commands/InitCommand.as</a></p>
<p>I&#8217;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.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sunil</title>
		<link>http://blog.everythingflex.com/2006/09/22/new-cairngorm-diagram/#comment-46</link>
		<dc:creator>Sunil</dc:creator>
		<pubDate>Sat, 24 May 2008 02:05:53 +0000</pubDate>
		<guid isPermaLink="false">http://control-access8.com/~eflex/wordpress/?p=90#comment-46</guid>
		<description>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</description>
		<content:encoded><![CDATA[<p>Wee!  I answered my own question&#8230; (I think)</p>
<p>1 )Declare the Timer object in the ModelLocator class as a member variable.</p>
<p>2) In my Main.mxml class I called timer.addEventListener(TimerEvent.TIMER, timerHandler, false, 0, true) in my creationComplete method.</p>
<p>3) And then defined the timerHandler() method in Main.mxml.</p>
<p>That seems to be the sane thing to do <img src='http://blog.everythingflex.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
Regards,<br />
Sunil</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sunil</title>
		<link>http://blog.everythingflex.com/2006/09/22/new-cairngorm-diagram/#comment-47</link>
		<dc:creator>Sunil</dc:creator>
		<pubDate>Fri, 23 May 2008 00:04:09 +0000</pubDate>
		<guid isPermaLink="false">http://control-access8.com/~eflex/wordpress/?p=90#comment-47</guid>
		<description>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</description>
		<content:encoded><![CDATA[<p>Hi there,</p>
<p>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.</p>
<p>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:</p>
<p>I&#8217;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.</p>
<p>I did some searching to see if anyone has talked about this sort of thing, and ended up here <img src='http://blog.everythingflex.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
It seems natural to put the Timer object, in the ModelLocator, so my app&#8217;s components can turn the timer off, change the timer interval, etc&#8230; but for some reason it doesn&#8217;t feel right to put the TimerEvent handler in the ModelLocator.  Thought&#8217;s anyone?</p>
<p>Cheers,<br />
Sunil</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kelvin</title>
		<link>http://blog.everythingflex.com/2006/09/22/new-cairngorm-diagram/#comment-45</link>
		<dc:creator>kelvin</dc:creator>
		<pubDate>Sat, 16 Feb 2008 12:45:27 +0000</pubDate>
		<guid isPermaLink="false">http://control-access8.com/~eflex/wordpress/?p=90#comment-45</guid>
		<description>Excellent explaination</description>
		<content:encoded><![CDATA[<p>Excellent explaination</p>
]]></content:encoded>
	</item>
</channel>
</rss>

