UPDATE: Twitter modified their crossdomain policy, which put an end to the flash fun. In other words, this doesn't work anymore. *sigh*
I wanted a Twitter badge for my site and Twitter is so easy to work with that I decided to whip one up that anyone can use.
The myTweets flash badge displays up to twenty of your public timeline tweets and offers a few customization options via flashVars.
var so = new SWFObject("myTweets.swf", "myTweets", "100%", "100%", "8", "#333333");
so.addVariable("userID", "1905521");
so.addVariable("total", "10");
so.addVariable("timer", "8");
so.addVariable("dateHex", "0xEAEAEA");
so.write("flashcontent");
bgcolor - via the embed
userID - mine is 1905521
total - total number of tweets you want to display, up to 20
timer - time between tweets in seconds
dateHex - color of the date Twittered text
The example above is at http://davecurry.net/myTweets/.
If you'd like to put myTweets on your site, here's a zip of the example.
Update: I've written an AS3 version too. Check out Talking to Twitter via Actionscript 3.0 for more info and source files.
This entry was written by , posted on October 7, 2007 at 4:57 pm, filed under Articles, Flash. Leave a comment or view the discussion at the permalink.



