*** Update 8th Feb 2011:
AS3 Class version available, read post here: http://bit.ly/fdSpFb
This flash tutorial is basic and just an example, hopefully it doesn't sound too much like sucking eggs. The script is written in ActionScript 2.0, a similar method may work in ActionScript 3.0 but loading in the XML will be different using event listeners, and forming the url with the php may be too. You’ll need to set up a dynamic text box for the data, and a movieClip for a button/trigger on the first frame and give them instance names in properties:
TextBox instance name: post_txt
MovieClip instance name: test_mc
Download this .as file from http://www.simonkinslow.com/tutorial/codeBreakdown.as and either copy and paste into frame 1 or you can add this to frame 1: #include "codeBreakdown.as"
Before exporting the movie you'll need to place the proxy.php file on your web server and note the location.
Update the variable on line 7 (var proxyFile:String = "http://www.yoursite.com/proxy.php?data=";) with the url of the file (just change this address http://www.yoursite.com/proxy.php and leave ?data= at the end.
Update the variable on line 8 (var proxyURL0:String = "http://yourPosterousUserName.posterous.com/rss.xml";) slot your user name into "yourPosterousUserName" to link to your feed
Export and roll over the MovieClip and you should see a post!
Any problems try downloading the link available below (needs CS4 or later) or contact me:
http://www.simonkinslow.com/tutorial/posterousRandomPostFlash.zip