|
-
problem with sending/recieving XML from API
hi
i used the twitter counter API ( http://twittercounter.com/pages/api ) to create a twitter widget, the swf in local (when test movie in flash 8 ) works carefully, but when i upload it, the status shows the "transferring from twittercounter..." but doesn't work!!!!
i tested every setting i thought may fix it!! but...
the widget is here:
http://amindiary.com/public/MyTwitterWidget.html
how can i fix it?
it must be like this
http://amindiary.com/public/twitter1.html
( this is a static version )
the code
Code:
var followersCurrent,rank,getusername,followers;
var username="amindiary" // change to your twitter username
var counter:XML = new XML();
counter.ignoreWhite = true;
counter.onLoad = function(success:Boolean) {
if (success) {
var Root=this.firstChild;
nodeNum=Root.childNodes.length;
getusername=Root.childNodes[1].firstChild;
followersCurrent=Root.childNodes[2].firstChild;
rank=Root.childNodes[13].firstChild;
followers=followersCurrent;
_parent.box.boxSlideShow.gotoAndPlay("startShow");
}
};
counter.load("http://www.twittercounter.com/api/?username="+username+"&output=xml&results=3");
if anyone wants source code to fix it, i will send via email
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|