<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: URLLoader subclass with automatic refresh support</title>
	<atom:link href="http://www.mikechambers.com/blog/2008/09/12/urlloader-subclass-with-automatic-refresh-support/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mikechambers.com/blog/2008/09/12/urlloader-subclass-with-automatic-refresh-support/</link>
	<description>code = joy</description>
	<lastBuildDate>Thu, 11 Mar 2010 21:22:56 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: harley</title>
		<link>http://www.mikechambers.com/blog/2008/09/12/urlloader-subclass-with-automatic-refresh-support/comment-page-1/#comment-15076</link>
		<dc:creator>harley</dc:creator>
		<pubDate>Fri, 21 Nov 2008 05:08:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikechambers.com/blog/?p=1499#comment-15076</guid>
		<description>Mike: Hey.. love your work and it&#039;s helping me along my way. 

I am pretty naive, but this looks like it might be the start of supporting something like a mule server.. or ESB, enterprise service bus. has this been done?</description>
		<content:encoded><![CDATA[<p>Mike: Hey.. love your work and it&#8217;s helping me along my way. </p>
<p>I am pretty naive, but this looks like it might be the start of supporting something like a mule server.. or ESB, enterprise service bus. has this been done?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Flex Monkey Patches &#187; Blog Archive &#187; Flex Blog Review: Mike Chambers</title>
		<link>http://www.mikechambers.com/blog/2008/09/12/urlloader-subclass-with-automatic-refresh-support/comment-page-1/#comment-14240</link>
		<dc:creator>Flex Monkey Patches &#187; Blog Archive &#187; Flex Blog Review: Mike Chambers</dc:creator>
		<pubDate>Thu, 02 Oct 2008 15:10:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikechambers.com/blog/?p=1499#comment-14240</guid>
		<description>[...] urlloader-subclass-with-automatic-refresh-support [...]</description>
		<content:encoded><![CDATA[<p>[...] urlloader-subclass-with-automatic-refresh-support [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Flex Monkey Patches &#187; Blog Archive &#187; Rubbernecker’s Review - Week 12</title>
		<link>http://www.mikechambers.com/blog/2008/09/12/urlloader-subclass-with-automatic-refresh-support/comment-page-1/#comment-13971</link>
		<dc:creator>Flex Monkey Patches &#187; Blog Archive &#187; Rubbernecker’s Review - Week 12</dc:creator>
		<pubDate>Wed, 17 Sep 2008 21:26:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikechambers.com/blog/?p=1499#comment-13971</guid>
		<description>[...] URLLoader subclass with automatic refresh support (from Mike Chambers) [...]</description>
		<content:encoded><![CDATA[<p>[...] URLLoader subclass with automatic refresh support (from Mike Chambers) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dzedward</title>
		<link>http://www.mikechambers.com/blog/2008/09/12/urlloader-subclass-with-automatic-refresh-support/comment-page-1/#comment-13912</link>
		<dc:creator>dzedward</dc:creator>
		<pubDate>Mon, 15 Sep 2008 23:17:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikechambers.com/blog/?p=1499#comment-13912</guid>
		<description>I would suggest dispatching a custom event &quot;REFRESH_INTERVAL&quot; or something, so you can listen for that timer every time its executed..  Just a suggestion.</description>
		<content:encoded><![CDATA[<p>I would suggest dispatching a custom event &#8220;REFRESH_INTERVAL&#8221; or something, so you can listen for that timer every time its executed..  Just a suggestion.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joc</title>
		<link>http://www.mikechambers.com/blog/2008/09/12/urlloader-subclass-with-automatic-refresh-support/comment-page-1/#comment-13899</link>
		<dc:creator>Joc</dc:creator>
		<pubDate>Mon, 15 Sep 2008 09:58:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikechambers.com/blog/?p=1499#comment-13899</guid>
		<description>Hi,

I had a couple of thoughts on this.

You could include a callback to provide the dynamic part of the URL (or a function which developers override in a subclass)

Initially my usage would be for a URLLoader that keeps calling until it gets a successful return value, as a a kind of failsafe so that the user doesn&#039;t have to keep requesting data. Although I guess this might just be done via a registered complete handler which cancels once it receives the right data.

Joc</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I had a couple of thoughts on this.</p>
<p>You could include a callback to provide the dynamic part of the URL (or a function which developers override in a subclass)</p>
<p>Initially my usage would be for a URLLoader that keeps calling until it gets a successful return value, as a a kind of failsafe so that the user doesn&#8217;t have to keep requesting data. Although I guess this might just be done via a registered complete handler which cancels once it receives the right data.</p>
<p>Joc</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: igor.ruzanov</title>
		<link>http://www.mikechambers.com/blog/2008/09/12/urlloader-subclass-with-automatic-refresh-support/comment-page-1/#comment-13898</link>
		<dc:creator>igor.ruzanov</dc:creator>
		<pubDate>Mon, 15 Sep 2008 09:17:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikechambers.com/blog/?p=1499#comment-13898</guid>
		<description>Hello Mike,
I think you can use the existing timer instance instead of creating a new one:

// call initTimer() from constructor
private function initTimer():void
{
	timer = new Timer(_refreshInterval);
	timer.addEventListener(TimerEvent.TIMER, onTimer);			
}

private function stopTimer():void
{
	if(timer != null)
	{
		timer.stop();
	}
}

private function startTimer():void
{
	stopTimer();

	if(_refreshInterval &lt;= 0 &#124;&#124; _callIsActive)
	{
		return;
	}
	
	timer.delay = _refreshInterval;
	
	timer.start();
}
</description>
		<content:encoded><![CDATA[<p>Hello Mike,<br />
I think you can use the existing timer instance instead of creating a new one:</p>
<p>// call initTimer() from constructor<br />
private function initTimer():void<br />
{<br />
	timer = new Timer(_refreshInterval);<br />
	timer.addEventListener(TimerEvent.TIMER, onTimer);<br />
}</p>
<p>private function stopTimer():void<br />
{<br />
	if(timer != null)<br />
	{<br />
		timer.stop();<br />
	}<br />
}</p>
<p>private function startTimer():void<br />
{<br />
	stopTimer();</p>
<p>	if(_refreshInterval &lt;= 0 || _callIsActive)<br />
	{<br />
		return;<br />
	}</p>
<p>	timer.delay = _refreshInterval;</p>
<p>	timer.start();<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: erikbianchi</title>
		<link>http://www.mikechambers.com/blog/2008/09/12/urlloader-subclass-with-automatic-refresh-support/comment-page-1/#comment-13892</link>
		<dc:creator>erikbianchi</dc:creator>
		<pubDate>Sun, 14 Sep 2008 06:32:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikechambers.com/blog/?p=1499#comment-13892</guid>
		<description>Hey Mike,

I wrote something like this for one of my clients a while ago. I don&#039;t own the rights otherwise i would distribute.

My approach was a bit different. What I did instead of extending loader was that I wrote a LoaderManager class that allowed you to set refresh intervals as well as a slew of other features, per project requirements. anyhow this is how the refresh would look:

LoaderManager.refresh(loaderInstance:Loader, interval:Number, appendTimeStap:Boolean);

I also had a cancelRefresh method, a refreshCount prop and broadcasted an event if the data was different thenn what was previously loaded (part of the managers responsibilities).

I agree with Tom&#039;s suggestion, I like URLPoller.

-erik</description>
		<content:encoded><![CDATA[<p>Hey Mike,</p>
<p>I wrote something like this for one of my clients a while ago. I don&#8217;t own the rights otherwise i would distribute.</p>
<p>My approach was a bit different. What I did instead of extending loader was that I wrote a LoaderManager class that allowed you to set refresh intervals as well as a slew of other features, per project requirements. anyhow this is how the refresh would look:</p>
<p>LoaderManager.refresh(loaderInstance:Loader, interval:Number, appendTimeStap:Boolean);</p>
<p>I also had a cancelRefresh method, a refreshCount prop and broadcasted an event if the data was different thenn what was previously loaded (part of the managers responsibilities).</p>
<p>I agree with Tom&#8217;s suggestion, I like URLPoller.</p>
<p>-erik</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The coolness of open source and Twitter &#124; Christopher Hayen</title>
		<link>http://www.mikechambers.com/blog/2008/09/12/urlloader-subclass-with-automatic-refresh-support/comment-page-1/#comment-13875</link>
		<dc:creator>The coolness of open source and Twitter &#124; Christopher Hayen</dc:creator>
		<pubDate>Fri, 12 Sep 2008 23:58:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikechambers.com/blog/?p=1499#comment-13875</guid>
		<description>[...] His blog post on it [...]</description>
		<content:encoded><![CDATA[<p>[...] His blog post on it [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Hayen</title>
		<link>http://www.mikechambers.com/blog/2008/09/12/urlloader-subclass-with-automatic-refresh-support/comment-page-1/#comment-13874</link>
		<dc:creator>Chris Hayen</dc:creator>
		<pubDate>Fri, 12 Sep 2008 23:50:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikechambers.com/blog/?p=1499#comment-13874</guid>
		<description>Hey thanks Mike.  I was going to write this but I was stuck peeling a bucket of shrimp :)

Haven&#039;t gotten a chance to play with it yet, but it would be good to have a property to bind for parameters.  The reason I wanted this in the first place was for the Twitter client I&#039;m writing.  Right now I have timers running to request the user&#039;s timeline every 60 seconds.  Currently I have to stop the timer when the request is made and start it back up after the result comes back so I don&#039;t get cached on my second request(the twitter api will cache if you request again before the 60 seconds is up).  I&#039;m going to play with it and see if I can add a good way to set the id of the last comment pulled.  

Thanks again.</description>
		<content:encoded><![CDATA[<p>Hey thanks Mike.  I was going to write this but I was stuck peeling a bucket of shrimp :)</p>
<p>Haven&#8217;t gotten a chance to play with it yet, but it would be good to have a property to bind for parameters.  The reason I wanted this in the first place was for the Twitter client I&#8217;m writing.  Right now I have timers running to request the user&#8217;s timeline every 60 seconds.  Currently I have to stop the timer when the request is made and start it back up after the result comes back so I don&#8217;t get cached on my second request(the twitter api will cache if you request again before the 60 seconds is up).  I&#8217;m going to play with it and see if I can add a good way to set the id of the last comment pulled.  </p>
<p>Thanks again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mikechambers</title>
		<link>http://www.mikechambers.com/blog/2008/09/12/urlloader-subclass-with-automatic-refresh-support/comment-page-1/#comment-13873</link>
		<dc:creator>mikechambers</dc:creator>
		<pubDate>Fri, 12 Sep 2008 22:54:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikechambers.com/blog/?p=1499#comment-13873</guid>
		<description>@Alessandro

Good catch. I fixed it locally.

Thanks...

mike chambers

mesh@adobe.com</description>
		<content:encoded><![CDATA[<p>@Alessandro</p>
<p>Good catch. I fixed it locally.</p>
<p>Thanks&#8230;</p>
<p>mike chambers</p>
<p><a href="mailto:mesh@adobe.com">mesh@adobe.com</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
