Hi,
I figured out how to get the feed from here:http://api.twitter.com/1/statuses/us...=myusername-by altering the code from http://www.republicofcode.com/tutori...r_widget/2.php to this:
However, it only works locally--There is a commented out line in the original code:Code:function processXML(e:Event):void { var myXML:XML=new XML(e.target.data); trace(myXML.channel.item[0].title); if (oldTweet!=(myXML.channel.item[0].title)) { containerTweets.ctext.tweet_1.text=myXML.channel.item[0].title; oldTweet=myXML.channel.item[0].title; trace(oldTweet,"oldTweet"); tweet(); }which I removed the commenting from and commented out the following line:Code:myXMLLoader.load(new URLRequest("proxy.php"));but, the proxy.php file which looks like this:Code://myXMLLoader.load(new URLRequest("http://api.twitter.com/1/statuses/user_timeline.rss?screen_name=myusername"));
<?php
echo file_get_contents("http://api.twitter.com/1/statuses/user_timeline.rss?screen_name=myusername");
?>
isnt returning the XML---I have a crossdomain.xml file too, which looks like this:
<?xml version="1.0" encoding="windows-1252"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="mysite.com" />
<allow-access-from domain="www.twitter.com" />
<allow-access-from domain="twitter.com" />
</cross-domain-policy>
but that doesnt help.
any suggestions?
Thanks,
---Yvette




Reply With Quote