<?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: Updated: Tweetr AS3 Library</title>
	<atom:link href="http://blog.swfjunkie.com/2009/03/updated-tweetr-as3-library/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.swfjunkie.com/2009/03/updated-tweetr-as3-library/</link>
	<description>random gibberish for random people</description>
	<lastBuildDate>Wed, 18 Apr 2012 21:33:27 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Herman Taniwan</title>
		<link>http://blog.swfjunkie.com/2009/03/updated-tweetr-as3-library/comment-page-2/#comment-446</link>
		<dc:creator>Herman Taniwan</dc:creator>
		<pubDate>Tue, 15 Nov 2011 18:31:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.swfjunkie.com/?p=202#comment-446</guid>
		<description>First of all it is a very cool libs and i&#039;ve encountered a problem which is i can&#039;t make it logout and login again, always stuck at authorization page. Can anybody help me ?</description>
		<content:encoded><![CDATA[<p>First of all it is a very cool libs and i&#8217;ve encountered a problem which is i can&#8217;t make it logout and login again, always stuck at authorization page. Can anybody help me ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Chalmers</title>
		<link>http://blog.swfjunkie.com/2009/03/updated-tweetr-as3-library/comment-page-2/#comment-442</link>
		<dc:creator>Robert Chalmers</dc:creator>
		<pubDate>Thu, 22 Sep 2011 22:23:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.swfjunkie.com/?p=202#comment-442</guid>
		<description>I&#039;m trying to find out how to extract the screen name returned by a successful post.
like;
trace(&quot;@&quot;+event.responseArray[0].user.name+&quot; wrote:

This returns my name, not my ScreenName.
What do I do to get my Screen Name. ie; @ShanghaiTimes
thanks
Robert</description>
		<content:encoded><![CDATA[<p>I&#8217;m trying to find out how to extract the screen name returned by a successful post.<br />
like;<br />
trace(&#8220;@&#8221;+event.responseArray[0].user.name+&#8221; wrote:</p>
<p>This returns my name, not my ScreenName.<br />
What do I do to get my Screen Name. ie; @ShanghaiTimes<br />
thanks<br />
Robert</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nite</title>
		<link>http://blog.swfjunkie.com/2009/03/updated-tweetr-as3-library/comment-page-1/#comment-437</link>
		<dc:creator>nite</dc:creator>
		<pubDate>Tue, 16 Aug 2011 11:20:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.swfjunkie.com/?p=202#comment-437</guid>
		<description>hi sandro 
nice work 
i am trying to update status with tweetr and flash 
but it is not happening. i converted flex example into flash
but something is wrong

im getting tweetr.username is read only 
tweetr.password is undefined property

package 
{
	import com.adobe.viewsource.ViewSource;
	import com.swfjunkie.tweetr.Tweetr;
	import com.swfjunkie.tweetr.data.objects.StatusData;
	import com.swfjunkie.tweetr.events.TweetEvent;
	import com.swfjunkie.tweetr.utils.TweetUtil;
     import flash.events.*;
	import flash.display.Sprite;
	import flash.display.StageAlign;
	import flash.display.StageScaleMode;
	import flash.filters.DropShadowFilter;
	import flash.text.StyleSheet;
	import flash.text.TextField;
	//import mx.controls.Alert;
	import flash.net.navigateToURL;

	[SWF(frameRate = &quot;24&quot;,backgroundColor = &quot;0x666666&quot;)]

	public class Update extends Sprite
	{
		private var tweetr:Tweetr;
		private var tweetId:Number;
		public function Update()
		{
			ViewSource.addMenuItem(this, &quot;srcview/index.html&quot;);
			stage.scaleMode = StageScaleMode.NO_SCALE;
			stage.align = StageAlign.TOP_LEFT;
			init();
		}
		private function init():void
		{
			tweetr = new Tweetr();
			tweetr.serviceHost = &quot;labs.swfjunkie.com/tweetr/proxy&quot;;

			tweetr.addEventListener(TweetEvent.COMPLETE, handleLoad);
			tweetr.addEventListener(TweetEvent.FAILED, handleFail);

		submitbtn.addEventListener(MouseEvent.CLICK, sendTweet);
		submitbtn.buttonMode = true;
			//  tweetr.getPublicTimeLine();
		}


		private function handleLoad(event:TweetEvent):void
		{
			//stack.selectedIndex = 1;
			tweetId = StatusData(event.responseArray[0]).id;
		}
		private function handleFail(event:TweetEvent):void
		{
			trace(event.info,&quot;Epic Fail&quot;);
			// Alert.show(event.info,&quot;Epic Fail&quot;);
		}
		private function sendTweet(e:MouseEvent):void
		{
			// make sure we got a username and
			// password before sending the tweet out.
			if (username_txt.text != &quot;&quot; &amp;&amp; pass_txt.text != &quot;&quot;)
			{
				//trace(&quot;hhh&quot;,tweetr.username,username_txt.text) 
				tweetr.username = username_txt.text;
				tweetr.password = pass_txt.text;
				tweetr.updateStatus(status_txt.text);
			}
			else
			{
				trace(&quot;Username &amp; Password required for this example! Don&#039;t worry, they won&#039;t get saved.&quot;);
				// Alert.show(&quot;Username &amp; Password required for this example! Don&#039;t worry, they won&#039;t get saved.&quot;);
			}
		}


		//    private function goToTweet():void
		//            {
		//                navigateToURL(new URLRequest(&quot;http://twitter.com/&quot;+username.text+&quot;/status/&quot;+tweetId),&quot;_blank&quot;);
		//            }
		// 
		//            
		//        
	}

}</description>
		<content:encoded><![CDATA[<p>hi sandro<br />
nice work<br />
i am trying to update status with tweetr and flash<br />
but it is not happening. i converted flex example into flash<br />
but something is wrong</p>
<p>im getting tweetr.username is read only<br />
tweetr.password is undefined property</p>
<p>package<br />
{<br />
	import com.adobe.viewsource.ViewSource;<br />
	import com.swfjunkie.tweetr.Tweetr;<br />
	import com.swfjunkie.tweetr.data.objects.StatusData;<br />
	import com.swfjunkie.tweetr.events.TweetEvent;<br />
	import com.swfjunkie.tweetr.utils.TweetUtil;<br />
     import flash.events.*;<br />
	import flash.display.Sprite;<br />
	import flash.display.StageAlign;<br />
	import flash.display.StageScaleMode;<br />
	import flash.filters.DropShadowFilter;<br />
	import flash.text.StyleSheet;<br />
	import flash.text.TextField;<br />
	//import mx.controls.Alert;<br />
	import flash.net.navigateToURL;</p>
<p>	[SWF(frameRate = "24",backgroundColor = "0x666666")]</p>
<p>	public class Update extends Sprite<br />
	{<br />
		private var tweetr:Tweetr;<br />
		private var tweetId:Number;<br />
		public function Update()<br />
		{<br />
			ViewSource.addMenuItem(this, &#8220;srcview/index.html&#8221;);<br />
			stage.scaleMode = StageScaleMode.NO_SCALE;<br />
			stage.align = StageAlign.TOP_LEFT;<br />
			init();<br />
		}<br />
		private function init():void<br />
		{<br />
			tweetr = new Tweetr();<br />
			tweetr.serviceHost = &#8220;labs.swfjunkie.com/tweetr/proxy&#8221;;</p>
<p>			tweetr.addEventListener(TweetEvent.COMPLETE, handleLoad);<br />
			tweetr.addEventListener(TweetEvent.FAILED, handleFail);</p>
<p>		submitbtn.addEventListener(MouseEvent.CLICK, sendTweet);<br />
		submitbtn.buttonMode = true;<br />
			//  tweetr.getPublicTimeLine();<br />
		}</p>
<p>		private function handleLoad(event:TweetEvent):void<br />
		{<br />
			//stack.selectedIndex = 1;<br />
			tweetId = StatusData(event.responseArray[0]).id;<br />
		}<br />
		private function handleFail(event:TweetEvent):void<br />
		{<br />
			trace(event.info,&#8221;Epic Fail&#8221;);<br />
			// Alert.show(event.info,&#8221;Epic Fail&#8221;);<br />
		}<br />
		private function sendTweet(e:MouseEvent):void<br />
		{<br />
			// make sure we got a username and<br />
			// password before sending the tweet out.<br />
			if (username_txt.text != &#8220;&#8221; &amp;&amp; pass_txt.text != &#8220;&#8221;)<br />
			{<br />
				//trace(&#8220;hhh&#8221;,tweetr.username,username_txt.text)<br />
				tweetr.username = username_txt.text;<br />
				tweetr.password = pass_txt.text;<br />
				tweetr.updateStatus(status_txt.text);<br />
			}<br />
			else<br />
			{<br />
				trace(&#8220;Username &amp; Password required for this example! Don&#8217;t worry, they won&#8217;t get saved.&#8221;);<br />
				// Alert.show(&#8220;Username &amp; Password required for this example! Don&#8217;t worry, they won&#8217;t get saved.&#8221;);<br />
			}<br />
		}</p>
<p>		//    private function goToTweet():void<br />
		//            {<br />
		//                navigateToURL(new URLRequest(&#8220;http://twitter.com/&#8221;+username.text+&#8221;/status/&#8221;+tweetId),&#8221;_blank&#8221;);<br />
		//            }<br />
		//<br />
		//<br />
		//<br />
	}</p>
<p>}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sixfngers</title>
		<link>http://blog.swfjunkie.com/2009/03/updated-tweetr-as3-library/comment-page-1/#comment-433</link>
		<dc:creator>sixfngers</dc:creator>
		<pubDate>Fri, 05 Aug 2011 18:36:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.swfjunkie.com/?p=202#comment-433</guid>
		<description>nm i still had the source files in my com folder so I think flash was using those over the swc i deleted teh swfjunkie folder and all is well. Excellent work.</description>
		<content:encoded><![CDATA[<p>nm i still had the source files in my com folder so I think flash was using those over the swc i deleted teh swfjunkie folder and all is well. Excellent work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sixfngers</title>
		<link>http://blog.swfjunkie.com/2009/03/updated-tweetr-as3-library/comment-page-1/#comment-432</link>
		<dc:creator>sixfngers</dc:creator>
		<pubDate>Fri, 05 Aug 2011 18:33:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.swfjunkie.com/?p=202#comment-432</guid>
		<description>I get the same errors regarding the CONFIG:: I see that they suggest using the swc instead of the source. How do you use the swc file i included it in my library but the compiler gives me the error like i didnt import the class. when i do import the class it gives me the CONFIG error</description>
		<content:encoded><![CDATA[<p>I get the same errors regarding the CONFIG:: I see that they suggest using the swc instead of the source. How do you use the swc file i included it in my library but the compiler gives me the error like i didnt import the class. when i do import the class it gives me the CONFIG error</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sangman</title>
		<link>http://blog.swfjunkie.com/2009/03/updated-tweetr-as3-library/comment-page-1/#comment-424</link>
		<dc:creator>Sangman</dc:creator>
		<pubDate>Thu, 28 Apr 2011 10:46:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.swfjunkie.com/?p=202#comment-424</guid>
		<description>Hi, 

First of all I think this library could prove very useful... but I can&#039;t seem to get it working. I&#039;m following the OAuth tutorial now but when I do just this:

var tweetr:Tweetr = new Tweetr();
var oauth:OAuth = new OAuth();				tweetr.addEventListener(TweetEvent.COMPLETE, HandleTweetEvent);				tweetr.addEventListener(TweetEvent.FAIL, HandleTweetEvent);		
oauth.addEventListener(OAuthEvent.COMPLETE, HandleOAuthEvent);				oauth.addEventListener(OAuthEvent.ERROR, HandleOAuthEvent);

Flash (CS5, btw) gives me error messages related to the use of CONFIG::AIR and CONFIG::WEB, like this one:
C:\[...]\com\swfjunkie\tweetr\oauth\OAuth.as, Line 19	1120: Access of undefined property AIR.
 
Don&#039;t really know what to do about this...</description>
		<content:encoded><![CDATA[<p>Hi, </p>
<p>First of all I think this library could prove very useful&#8230; but I can&#8217;t seem to get it working. I&#8217;m following the OAuth tutorial now but when I do just this:</p>
<p>var tweetr:Tweetr = new Tweetr();<br />
var oauth:OAuth = new OAuth();				tweetr.addEventListener(TweetEvent.COMPLETE, HandleTweetEvent);				tweetr.addEventListener(TweetEvent.FAIL, HandleTweetEvent);<br />
oauth.addEventListener(OAuthEvent.COMPLETE, HandleOAuthEvent);				oauth.addEventListener(OAuthEvent.ERROR, HandleOAuthEvent);</p>
<p>Flash (CS5, btw) gives me error messages related to the use of CONFIG::AIR and CONFIG::WEB, like this one:<br />
C:\[...]\com\swfjunkie\tweetr\oauth\OAuth.as, Line 19	1120: Access of undefined property AIR.</p>
<p>Don&#8217;t really know what to do about this&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charles</title>
		<link>http://blog.swfjunkie.com/2009/03/updated-tweetr-as3-library/comment-page-1/#comment-384</link>
		<dc:creator>Charles</dc:creator>
		<pubDate>Wed, 08 Dec 2010 15:27:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.swfjunkie.com/?p=202#comment-384</guid>
		<description>Hi,

This is a great library.  I&#039;m using it with Adobe AIR.  I just wanted to provide some feedback on OAUTH with Twitter.  Right now in this library I don&#039;t think there is any sort of event handling when a user deny&#039;s access to twitter via the HTMLLoader, unless I missed an event listener somewhere.

I came up with a way to know if the user clicks the Deny button, but it isn&#039;t very clean.  It involves listening to the HTMLLoaders Event.COMPLETE event, then examining the current URL, and tacking on a javascript function to callback to the actionscript code when deny is clicked.

The page that asks for credentials with the Allow or Deny buttons is: http://twitter.com/oauth/authorize

You can use the following in the HTMLLoaders Event.COMPLETE event handler to look for that page, then grab the instance of the Deny button and add the javascript function to it.  My HTMLLoader is called &quot;loginBrowserInstance&quot;.

if ( loginBrowserInstance.location.indexOf(&#039;http://twitter.com/oauth/authorize&#039;) == 0 ) {

if ( loginBrowserInstance.window.document.getElementById(&quot;deny&quot;) ) {
trace(&quot;Setting javascript items on twitter page&quot;);
						loginBrowserInstance.window.handleDenyCallFromJavaScript = this.handleDenyCallFromJavaScript;
						loginBrowserInstance.window.document.getElementById(&quot;deny&quot;).setAttribute(&quot;onclick&quot;, &quot;window.handleDenyCallFromJavaScript(); return true&quot;);
}
}

private function handleDenyCallFromJavaScript():void {
	trace(&quot;the deny button was pressed&quot;);
}</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>This is a great library.  I&#8217;m using it with Adobe AIR.  I just wanted to provide some feedback on OAUTH with Twitter.  Right now in this library I don&#8217;t think there is any sort of event handling when a user deny&#8217;s access to twitter via the HTMLLoader, unless I missed an event listener somewhere.</p>
<p>I came up with a way to know if the user clicks the Deny button, but it isn&#8217;t very clean.  It involves listening to the HTMLLoaders Event.COMPLETE event, then examining the current URL, and tacking on a javascript function to callback to the actionscript code when deny is clicked.</p>
<p>The page that asks for credentials with the Allow or Deny buttons is: <a href="http://twitter.com/oauth/authorize" rel="nofollow">http://twitter.com/oauth/authorize</a></p>
<p>You can use the following in the HTMLLoaders Event.COMPLETE event handler to look for that page, then grab the instance of the Deny button and add the javascript function to it.  My HTMLLoader is called &#8220;loginBrowserInstance&#8221;.</p>
<p>if ( loginBrowserInstance.location.indexOf(&#8216;<a href="http://twitter.com/oauth/authorize" rel="nofollow">http://twitter.com/oauth/authorize</a>&#8216;) == 0 ) {</p>
<p>if ( loginBrowserInstance.window.document.getElementById(&#8220;deny&#8221;) ) {<br />
trace(&#8220;Setting javascript items on twitter page&#8221;);<br />
						loginBrowserInstance.window.handleDenyCallFromJavaScript = this.handleDenyCallFromJavaScript;<br />
						loginBrowserInstance.window.document.getElementById(&#8220;deny&#8221;).setAttribute(&#8220;onclick&#8221;, &#8220;window.handleDenyCallFromJavaScript(); return true&#8221;);<br />
}<br />
}</p>
<p>private function handleDenyCallFromJavaScript():void {<br />
	trace(&#8220;the deny button was pressed&#8221;);<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sandro</title>
		<link>http://blog.swfjunkie.com/2009/03/updated-tweetr-as3-library/comment-page-1/#comment-262</link>
		<dc:creator>Sandro</dc:creator>
		<pubDate>Tue, 17 Aug 2010 07:03:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.swfjunkie.com/?p=202#comment-262</guid>
		<description>As of 1.0.b3 setting username and password is not provided anymore.
Only get username still exists. This is due twitters deprecation of
the basic authentication process. In order to prevent people from
using it, it has been completely remove in the latest release.

The examples are not up to date with this change though, except for
the oauth examples which i blogged about.here:

&lt;a href=&quot;http://blog.swfjunkie.com/2010/08/tweetr-v1-0b3-out/&quot; rel=&quot;nofollow&quot;&gt;
http://blog.swfjunkie.com/2010/08/tweetr-v1-0b3-out/ &lt;/a&gt;

Greets,
Sandro</description>
		<content:encoded><![CDATA[<p>As of 1.0.b3 setting username and password is not provided anymore.<br />
Only get username still exists. This is due twitters deprecation of<br />
the basic authentication process. In order to prevent people from<br />
using it, it has been completely remove in the latest release.</p>
<p>The examples are not up to date with this change though, except for<br />
the oauth examples which i blogged about.here:</p>
<p><a href="http://blog.swfjunkie.com/2010/08/tweetr-v1-0b3-out/" rel="nofollow"><br />
</a><a href="http://blog.swfjunkie.com/2010/08/tweetr-v1-0b3-out/" rel="nofollow">http://blog.swfjunkie.com/2010/08/tweetr-v1-0b3-out/</a> </p>
<p>Greets,<br />
Sandro</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: enporte</title>
		<link>http://blog.swfjunkie.com/2009/03/updated-tweetr-as3-library/comment-page-1/#comment-257</link>
		<dc:creator>enporte</dc:creator>
		<pubDate>Tue, 17 Aug 2010 02:15:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.swfjunkie.com/?p=202#comment-257</guid>
		<description>Hi,
I downloaded 1.0b3 swc just now, and tried to use FlexExampleTwo. However, I got these errors:

&quot;1059:Property is read-only&quot;
&quot;1119: Access of possibly undefined property password through a reference with static type com.swfjunkie.tweetr:Tweetr.&quot;

It seems that in the swc there is no &quot;set username&quot; or &quot;set password&quot; method. Am I missing anything?


Thanks.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I downloaded 1.0b3 swc just now, and tried to use FlexExampleTwo. However, I got these errors:</p>
<p>&#8220;1059:Property is read-only&#8221;<br />
&#8220;1119: Access of possibly undefined property password through a reference with static type com.swfjunkie.tweetr:Tweetr.&#8221;</p>
<p>It seems that in the swc there is no &#8220;set username&#8221; or &#8220;set password&#8221; method. Am I missing anything?</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: al</title>
		<link>http://blog.swfjunkie.com/2009/03/updated-tweetr-as3-library/comment-page-1/#comment-210</link>
		<dc:creator>al</dc:creator>
		<pubDate>Mon, 31 May 2010 08:26:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.swfjunkie.com/?p=202#comment-210</guid>
		<description>Hi, awesome library, very nice of you to make this open source. I am integrating this into an AIR app I have, tweetr.getUserTimeLine() works great but I can&#039;t seem to get tweetr.search() working. Code is below, let me know if you have any ideas, thanks.
__________________________

package {
	
	import flash.events.Event;
	import flash.display.MovieClip;	
	import com.swfjunkie.tweetr.events.TweetEvent;
	import com.swfjunkie.tweetr.utils.TweetUtil;
	import com.swfjunkie.tweetr.data.objects.StatusData;
	import com.swfjunkie.tweetr.data.objects.SearchResultData;
	import com.swfjunkie.tweetr.Tweetr;
	
	public class twitter extends MovieClip
	{
			
		    public function twitter():void
                {
                    // create a tweetr instance
               tweetr = new Tweetr();   
               tweetr.useAuthHeaders = true;
                
                // pass the username &amp; password
               tweetr.username = &quot;my username&quot;;
               tweetr.password = &quot;my password&quot;;			
                
                // add some eventlisteners
                tweetr.addEventListener(TweetEvent.COMPLETE, handleTweetsLoaded);
                tweetr.addEventListener(TweetEvent.FAILED, handleTweetsFail);
                say_button.addEventListener(MouseEvent.CLICK, Speak_Tweet_Event);   
				
				//tweetr.getUserTimeLine();			
				tweetr.search(&quot;gadgets&quot;);		
                }              
             
			 
			   
                private function handleTweetsLoaded(event:TweetEvent):void
            {
                // assign the latest response to a data object
                var tweet:StatusData = event.responseArray[0] as StatusData;				
                text.text = &quot;@&quot;+tweet.user.screenName + tweet.text + &quot; &quot; + TweetUtil.returnTweetAge(tweet.createdAt);				
				
            }              
        
          			
			private function handleTweetsFail(event:TweetEvent):void
            {
                trace (&quot;Tweet Called Failed&quot;);
					 
            }		
			
	}
}</description>
		<content:encoded><![CDATA[<p>Hi, awesome library, very nice of you to make this open source. I am integrating this into an AIR app I have, tweetr.getUserTimeLine() works great but I can&#8217;t seem to get tweetr.search() working. Code is below, let me know if you have any ideas, thanks.<br />
__________________________</p>
<p>package {</p>
<p>	import flash.events.Event;<br />
	import flash.display.MovieClip;<br />
	import com.swfjunkie.tweetr.events.TweetEvent;<br />
	import com.swfjunkie.tweetr.utils.TweetUtil;<br />
	import com.swfjunkie.tweetr.data.objects.StatusData;<br />
	import com.swfjunkie.tweetr.data.objects.SearchResultData;<br />
	import com.swfjunkie.tweetr.Tweetr;</p>
<p>	public class twitter extends MovieClip<br />
	{</p>
<p>		    public function twitter():void<br />
                {<br />
                    // create a tweetr instance<br />
               tweetr = new Tweetr();<br />
               tweetr.useAuthHeaders = true;</p>
<p>                // pass the username &amp; password<br />
               tweetr.username = &#8220;my username&#8221;;<br />
               tweetr.password = &#8220;my password&#8221;;			</p>
<p>                // add some eventlisteners<br />
                tweetr.addEventListener(TweetEvent.COMPLETE, handleTweetsLoaded);<br />
                tweetr.addEventListener(TweetEvent.FAILED, handleTweetsFail);<br />
                say_button.addEventListener(MouseEvent.CLICK, Speak_Tweet_Event);   </p>
<p>				//tweetr.getUserTimeLine();<br />
				tweetr.search(&#8220;gadgets&#8221;);<br />
                }              </p>
<p>                private function handleTweetsLoaded(event:TweetEvent):void<br />
            {<br />
                // assign the latest response to a data object<br />
                var tweet:StatusData = event.responseArray[0] as StatusData;<br />
                text.text = &#8220;@&#8221;+tweet.user.screenName + tweet.text + &#8221; &#8221; + TweetUtil.returnTweetAge(tweet.createdAt);				</p>
<p>            }              </p>
<p>			private function handleTweetsFail(event:TweetEvent):void<br />
            {<br />
                trace (&#8220;Tweet Called Failed&#8221;);</p>
<p>            }		</p>
<p>	}<br />
}</p>
]]></content:encoded>
	</item>
</channel>
</rss>

