<?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: Twitter, Twitter, Twitter</title>
	<atom:link href="http://ctrloptcmd.com/archives/699/twitter-twitter-twitter/feed/" rel="self" type="application/rss+xml" />
	<link>http://ctrloptcmd.com/feeder/?FeederAction=clicked&#038;feed=Comments+on+Articles+%28RSS2%29&#038;seed=http%3A%2F%2Fctrloptcmd.com%2Farchives%2F699%2Ftwitter-twitter-twitter%2F%23comment-&#038;seed_title=Twitter%2C+Twitter%2C+Twitter</link>
	<description>Mouse bad, keyboard good</description>
	<lastBuildDate>Wed, 25 Jan 2012 07:40:30 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Dave</title>
		<link>http://ctrloptcmd.com/feeder/?FeederAction=clicked&#038;feed=Comments+on+Articles+%28RSS2%29&#038;seed=http%3A%2F%2Fctrloptcmd.com%2Farchives%2F699%2Ftwitter-twitter-twitter%2F%23comment-899&#038;seed_title=Twitter%2C+Twitter%2C+Twitter/comment-page-1/#comment-899</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Tue, 02 Nov 2010 07:07:34 +0000</pubDate>
		<guid isPermaLink="false">http://ctrloptcmd.com/?p=699#comment-899</guid>
		<description>Both you and the less awsome version of you are legends. Thanks for this, works like a chaaaarm when I commented out those two lines. Thank you very kindly for making this available to fauxgrammers like me.</description>
		<content:encoded><![CDATA[<p>Both you and the less awsome version of you are legends. Thanks for this, works like a chaaaarm when I commented out those two lines. Thank you very kindly for making this available to fauxgrammers like me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin</title>
		<link>http://ctrloptcmd.com/feeder/?FeederAction=clicked&#038;feed=Comments+on+Articles+%28RSS2%29&#038;seed=http%3A%2F%2Fctrloptcmd.com%2Farchives%2F699%2Ftwitter-twitter-twitter%2F%23comment-892&#038;seed_title=Twitter%2C+Twitter%2C+Twitter/comment-page-1/#comment-892</link>
		<dc:creator>Martin</dc:creator>
		<pubDate>Fri, 10 Sep 2010 18:01:03 +0000</pubDate>
		<guid isPermaLink="false">http://ctrloptcmd.com/?p=699#comment-892</guid>
		<description>Hey Stan. 
I haven&#039;t gotten around to check this yet, but the class did originally return the original string if no URLs were found. Guess I changed something and borked it. :D

Thanks for keeping me on my toes. I&#039;ll fix it as soon as I have some spare time.</description>
		<content:encoded><![CDATA[<p>Hey Stan.<br />
I haven&#8217;t gotten around to check this yet, but the class did originally return the original string if no URLs were found. Guess I changed something and borked it. :D</p>
<p>Thanks for keeping me on my toes. I&#8217;ll fix it as soon as I have some spare time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stan</title>
		<link>http://ctrloptcmd.com/feeder/?FeederAction=clicked&#038;feed=Comments+on+Articles+%28RSS2%29&#038;seed=http%3A%2F%2Fctrloptcmd.com%2Farchives%2F699%2Ftwitter-twitter-twitter%2F%23comment-884&#038;seed_title=Twitter%2C+Twitter%2C+Twitter/comment-page-1/#comment-884</link>
		<dc:creator>Stan</dc:creator>
		<pubDate>Thu, 12 Aug 2010 09:57:30 +0000</pubDate>
		<guid isPermaLink="false">http://ctrloptcmd.com/?p=699#comment-884</guid>
		<description>Hi Martin,

Good work! I found one small issue though which is more related to your URLValidator class.

The tag method of the URLValidator returns an empty string if there isn&#039;t a link in the search string. So when you do tweet.linked = urlvalidator.tag(sTweet); tweet.linked is an empty string if there isn&#039;t a link in the tweet. 

And I know it&#039;s crazy, but apparently there are tweets without any links ;)

It may be intended to work that way, but my expection would be to return the original text if it didn&#039;t find a link so I modified the the tag method of the URLValidator class checking if any urls were found at all before proceeding to parse them.

var urls : Array = find(stringToSearch);
			
if (urls.length&lt;1) {
	return stringToSearch;
}</description>
		<content:encoded><![CDATA[<p>Hi Martin,</p>
<p>Good work! I found one small issue though which is more related to your URLValidator class.</p>
<p>The tag method of the URLValidator returns an empty string if there isn&#8217;t a link in the search string. So when you do tweet.linked = urlvalidator.tag(sTweet); tweet.linked is an empty string if there isn&#8217;t a link in the tweet. </p>
<p>And I know it&#8217;s crazy, but apparently there are tweets without any links ;)</p>
<p>It may be intended to work that way, but my expection would be to return the original text if it didn&#8217;t find a link so I modified the the tag method of the URLValidator class checking if any urls were found at all before proceeding to parse them.</p>
<p>var urls : Array = find(stringToSearch);</p>
<p>if (urls.length&lt;1) {<br />
	return stringToSearch;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://ctrloptcmd.com/feeder/?FeederAction=clicked&#038;feed=Comments+on+Articles+%28RSS2%29&#038;seed=http%3A%2F%2Fctrloptcmd.com%2Farchives%2F699%2Ftwitter-twitter-twitter%2F%23comment-855&#038;seed_title=Twitter%2C+Twitter%2C+Twitter/comment-page-1/#comment-855</link>
		<dc:creator>James</dc:creator>
		<pubDate>Thu, 10 Jun 2010 19:00:07 +0000</pubDate>
		<guid isPermaLink="false">http://ctrloptcmd.com/?p=699#comment-855</guid>
		<description>Thanks a lot for your work - it is great. I would not have had a clue how to do it!</description>
		<content:encoded><![CDATA[<p>Thanks a lot for your work &#8211; it is great. I would not have had a clue how to do it!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin</title>
		<link>http://ctrloptcmd.com/feeder/?FeederAction=clicked&#038;feed=Comments+on+Articles+%28RSS2%29&#038;seed=http%3A%2F%2Fctrloptcmd.com%2Farchives%2F699%2Ftwitter-twitter-twitter%2F%23comment-811&#038;seed_title=Twitter%2C+Twitter%2C+Twitter/comment-page-1/#comment-811</link>
		<dc:creator>Martin</dc:creator>
		<pubDate>Thu, 18 Feb 2010 13:51:22 +0000</pubDate>
		<guid isPermaLink="false">http://ctrloptcmd.com/?p=699#comment-811</guid>
		<description>That sounds strange. It updates in a few seconds here.</description>
		<content:encoded><![CDATA[<p>That sounds strange. It updates in a few seconds here.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vicky</title>
		<link>http://ctrloptcmd.com/feeder/?FeederAction=clicked&#038;feed=Comments+on+Articles+%28RSS2%29&#038;seed=http%3A%2F%2Fctrloptcmd.com%2Farchives%2F699%2Ftwitter-twitter-twitter%2F%23comment-810&#038;seed_title=Twitter%2C+Twitter%2C+Twitter/comment-page-1/#comment-810</link>
		<dc:creator>vicky</dc:creator>
		<pubDate>Thu, 18 Feb 2010 12:36:05 +0000</pubDate>
		<guid isPermaLink="false">http://ctrloptcmd.com/?p=699#comment-810</guid>
		<description>Haiii...thanks for the class you share....
very awesome work.....
but...one question....
how long did the twitter update the feed

on my web site it takes hours to get the newest twitter update,,,,  any suggestion


big thanks,
vicky</description>
		<content:encoded><![CDATA[<p>Haiii&#8230;thanks for the class you share&#8230;.<br />
very awesome work&#8230;..<br />
but&#8230;one question&#8230;.<br />
how long did the twitter update the feed</p>
<p>on my web site it takes hours to get the newest twitter update,,,,  any suggestion</p>
<p>big thanks,<br />
vicky</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anthony</title>
		<link>http://ctrloptcmd.com/feeder/?FeederAction=clicked&#038;feed=Comments+on+Articles+%28RSS2%29&#038;seed=http%3A%2F%2Fctrloptcmd.com%2Farchives%2F699%2Ftwitter-twitter-twitter%2F%23comment-346&#038;seed_title=Twitter%2C+Twitter%2C+Twitter/comment-page-1/#comment-346</link>
		<dc:creator>Anthony</dc:creator>
		<pubDate>Mon, 12 Oct 2009 19:15:51 +0000</pubDate>
		<guid isPermaLink="false">http://ctrloptcmd.com/?p=699#comment-346</guid>
		<description>Awesome work...I can get it working locally, but I&#039;ve been unable to get it up and running, once I upload to the server.</description>
		<content:encoded><![CDATA[<p>Awesome work&#8230;I can get it working locally, but I&#8217;ve been unable to get it up and running, once I upload to the server.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin</title>
		<link>http://ctrloptcmd.com/feeder/?FeederAction=clicked&#038;feed=Comments+on+Articles+%28RSS2%29&#038;seed=http%3A%2F%2Fctrloptcmd.com%2Farchives%2F699%2Ftwitter-twitter-twitter%2F%23comment-344&#038;seed_title=Twitter%2C+Twitter%2C+Twitter/comment-page-1/#comment-344</link>
		<dc:creator>Martin</dc:creator>
		<pubDate>Tue, 22 Sep 2009 10:10:47 +0000</pubDate>
		<guid isPermaLink="false">http://ctrloptcmd.com/?p=699#comment-344</guid>
		<description>@Dan Ah. Seems I let some legacy code sneak it&#039;s way back in there.

Thanks for pointing that out for me. :) I corrected in the code above.</description>
		<content:encoded><![CDATA[<p>@Dan Ah. Seems I let some legacy code sneak it&#8217;s way back in there.</p>
<p>Thanks for pointing that out for me. :) I corrected in the code above.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://ctrloptcmd.com/feeder/?FeederAction=clicked&#038;feed=Comments+on+Articles+%28RSS2%29&#038;seed=http%3A%2F%2Fctrloptcmd.com%2Farchives%2F699%2Ftwitter-twitter-twitter%2F%23comment-343&#038;seed_title=Twitter%2C+Twitter%2C+Twitter/comment-page-1/#comment-343</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Fri, 18 Sep 2009 20:34:04 +0000</pubDate>
		<guid isPermaLink="false">http://ctrloptcmd.com/?p=699#comment-343</guid>
		<description>Hey Martin,
Just wanted to say a big &quot;Thanks!&quot; for this class. It&#039;s been very helpful. I had another solution running on my site, but it began working very strangely due to Twitter&#039;s crossdomain restrictions. For now, this solution seems to be working just dandy.

I converted it into a working FP9 version (using Arrays, like you suggested), and I also extended it a bit to add a couple more values to the tweet object (publish date, and status URL).

I noticed one other issue. You mentioned &quot;chopped&quot; as a return formatting type. But it appears that it&#039;s named &quot;incognito&quot; instead of &quot;chopped&quot;. Small issue, but it might confuse some peeps out there...

Anyways like I said, THANK YOU for getting me rolling in the right direction.

Here&#039;s what the loop looks like now:
&lt;code&gt;
for each (var xTweet:XML in txml..item) {
   var sDate	:	String = xTweet.pubDate.text().toString();
   var sLink	:	String = xTweet.link.text().toString();
   var sTweet  :      String = xTweet.description.text().toString();
   var tweet : Object = {};
	 tweet.raw = sTweet;
	 tweet.incognito = sTweet.substr(sTweet.indexOf(&quot;:&quot;) + 2);
	 tweet.linked = urlvalidator.tag(sTweet);
	 tweet.choppedAndLinked = urlvalidator.tag(sTweet.substr(sTweet.indexOf(&quot;:&quot;) + 2));
	 tweet.pubDate = sDate;
	 tweet.statusLink = sLink;
							
	 if(sTweet.indexOf(&quot;@&quot;) &gt; -1)
		 tweet.friendly = true;
	 else
		 tweet.friendly = false;
							
	 if(!ignoreReplies)
		 tweets.push(tweet);
	 else if (ignoreReplies &amp;&amp; !tweet.friendly)
		 tweets.push(tweet);
	 }
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Hey Martin,<br />
Just wanted to say a big &#8220;Thanks!&#8221; for this class. It&#8217;s been very helpful. I had another solution running on my site, but it began working very strangely due to Twitter&#8217;s crossdomain restrictions. For now, this solution seems to be working just dandy.</p>
<p>I converted it into a working FP9 version (using Arrays, like you suggested), and I also extended it a bit to add a couple more values to the tweet object (publish date, and status URL).</p>
<p>I noticed one other issue. You mentioned &#8220;chopped&#8221; as a return formatting type. But it appears that it&#8217;s named &#8220;incognito&#8221; instead of &#8220;chopped&#8221;. Small issue, but it might confuse some peeps out there&#8230;</p>
<p>Anyways like I said, THANK YOU for getting me rolling in the right direction.</p>
<p>Here&#8217;s what the loop looks like now:</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">for each (var xTweet:XML in txml..item) {<br />
&nbsp; &nbsp;var sDate&nbsp; : String = xTweet.pubDate.text().toString();<br />
&nbsp; &nbsp;var sLink&nbsp; : String = xTweet.link.text().toString();<br />
&nbsp; &nbsp;var sTweet &nbsp;: &nbsp; &nbsp; &nbsp;String = xTweet.description.text().toString();<br />
&nbsp; &nbsp;var tweet : Object = {};<br />
&nbsp; &nbsp;tweet.raw = sTweet;<br />
&nbsp; &nbsp;tweet.incognito = sTweet.substr(sTweet.indexOf(&quot;:&quot;) + 2);<br />
&nbsp; &nbsp;tweet.linked = urlvalidator.tag(sTweet);<br />
&nbsp; &nbsp;tweet.choppedAndLinked = urlvalidator.tag(sTweet.substr(sTweet.indexOf(&quot;:&quot;) + 2));<br />
&nbsp; &nbsp;tweet.pubDate = sDate;<br />
&nbsp; &nbsp;tweet.statusLink = sLink;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp;if(sTweet.indexOf(&quot;@&quot;) &amp;gt; -1)<br />
&nbsp; &nbsp; &nbsp;tweet.friendly = true;<br />
&nbsp; &nbsp;else<br />
&nbsp; &nbsp; &nbsp;tweet.friendly = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp;if(!ignoreReplies)<br />
&nbsp; &nbsp; &nbsp;tweets.push(tweet);<br />
&nbsp; &nbsp;else if (ignoreReplies &amp;amp;&amp;amp; !tweet.friendly)<br />
&nbsp; &nbsp; &nbsp;tweets.push(tweet);<br />
&nbsp; &nbsp;}</div></td></tr></tbody></table></div>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin</title>
		<link>http://ctrloptcmd.com/feeder/?FeederAction=clicked&#038;feed=Comments+on+Articles+%28RSS2%29&#038;seed=http%3A%2F%2Fctrloptcmd.com%2Farchives%2F699%2Ftwitter-twitter-twitter%2F%23comment-297&#038;seed_title=Twitter%2C+Twitter%2C+Twitter/comment-page-1/#comment-297</link>
		<dc:creator>Martin</dc:creator>
		<pubDate>Thu, 23 Jul 2009 20:24:26 +0000</pubDate>
		<guid isPermaLink="false">http://ctrloptcmd.com/?p=699#comment-297</guid>
		<description>Oh why not. &lt;a href=&quot;http://ctrloptcmd.com/downloads/twitterpipe_fla.zip&quot; rel=&quot;nofollow&quot;&gt;Here&lt;/a&gt;&#039;s a simple example that&#039;ll cycle through tweets in a TextField on stage when you click.</description>
		<content:encoded><![CDATA[<p>Oh why not. <a href="http://ctrloptcmd.com/downloads/twitterpipe_fla.zip" >Here</a>&#8216;s a simple example that&#8217;ll cycle through tweets in a TextField on stage when you click.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

