I have a site I built in AS3 that included a twitter widget I learned how to create from a tutorial: (http://www.republicofcode.com/tutorials/flash/twitter_widget/3.php).
Now, the site has to be in AS2!!! I can convert everything fine, except I’m really lost on the widget…
Here’s the actionscript:
var myXMLLoader:URLLoader = new URLLoader();
myXMLLoader.load(new URLRequest(“twitter.php”));
myXMLLoader.addEventListener(Event.COMPLETE, processXML);
function processXML(e:Event):void{
var myXML:XML = new XML(e.target.data);
tweet_1.text = myXML.status[0].text;
tweet_2.text = myXML.status[1].text;
tweet_3.text = myXML.status[2].text;
tweet_4.text = myXML.status[3].text;
}
follow_btn.addEventListener(MouseEvent.CLICK, onFollow);
function onFollow(e:MouseEvent):void{
navigateToURL(new URLRequest(“http:///twitter.com/blue_chi”));
}
follow_btn.buttonMode = true;