My post on the AS3 twitter API got some feedback, last of which was Mark asking how to set your status using the API.
I don’t really know what’s been his problem, but it took only a few seconds to create an example.

<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" creationComplete="init()">
	<mx:Script>
		<![CDATA[
			import twitter.api.Twitter;

			public static const USER:String = "USERNAME";
			public static const PASSWORD:String = "PASSWORD";

			private var t:Twitter;

			private function init():void {
				t = new Twitter();
				t.setAuthenticationCredentials(USER, PASSWORD);
			}
			private function buttonClickHandler():void {
				button.enabled = false;
				t.setStatus(input.text);
			}
		]]>
	</mx:Script>
	<mx:TextArea editable="true" id="input"/>
	<mx:Button label="go" id="button" click="buttonClickHandler()" />
</mx:WindowedApplication>

Just create an AIR application in Flex Builder 3 or FlashDevelop, insert this code and make sure to put the TwitterScript SWC into your libs folder.

For the lazy ones of you, grab this Flex Project Archive into FlexBuilder.
Download Archive

All January entries of the 25lines ActionScript contest were released yesterday: http://www.25lines.com/?p=227

I’ve updated the 25lines browser, so now you can view the SWFs comfortable at http://xathis.com/25lines/0901/. Be careful, entry #020 crashed my browser.

You’ll find my submission as #18.