-
Bmcc*81
XML: 2 feeds Problems - Both work offline, but one doesn't work online
Hi,
I have XML: 2 feeds - Both work offline, but one doesn't work online.
The first one loads fine on Frame 1, but when I click the button to go to the second feed I get my XML Feed error.
I'm not sure why this doesn't work.
This is a link to the project. MY WORKING SWF
Is there away maybe to dump the xml before going to the next maybe? Anyone have any ideas?
I've attached the projects HERE
This is the gutts of both codes:
PHP Code:
var objPokerXml = new XML();
var arPokerDates = new Array();
objPokerXml.ignoreWhite = true;
objPokerXml.onLoad = function(success) {
if (success) {
var iTotalTournaments = objPokerXml.childNodes[0].childNodes.length;
for (i=0; i<iTotalTournaments; i++) {
var arTempArray = new Array();
iTempID = objPokerXml.childNodes[0].childNodes[i].attributes.id;
sgameType = objPokerXml.childNodes[0].childNodes[i].childNodes[0].firstChild.nodeValue;
sTempGameType = objPokerXml.childNodes[0].childNodes[i].childNodes[1].firstChild.nodeValue;
scoinValue = objPokerXml.childNodes[0].childNodes[i].childNodes[2].firstChild.nodeValue;
sjackpotValue = objPokerXml.childNodes[0].childNodes[i].childNodes[3].firstChild.nodeValue;
sTempBuyIn = objPokerXml.childNodes[0].childNodes[i].childNodes[4].firstChild.nodeValue;
sTempFee = objPokerXml.childNodes[0].childNodes[i].childNodes[5].firstChild.nodeValue;
sTempPrizePool = objPokerXml.childNodes[0].childNodes[i].childNodes[6].firstChild.nodeValue;
iTempMinPlayers = objPokerXml.childNodes[0].childNodes[i].childNodes[7].firstChild.nodeValue;
iTempMaxPlayers = objPokerXml.childNodes[0].childNodes[i].childNodes[8].firstChild.nodeValue;
sTempStatus = objPokerXml.childNodes[0].childNodes[i].childNodes[9].firstChild.nodeValue;
sTempRegoTime = objPokerXml.childNodes[0].childNodes[i].childNodes[10].firstChild.nodeValue;
sTempRegoDate = objPokerXml.childNodes[0].childNodes[i].childNodes[11].firstChild.nodeValue;
sTempStartTime = objPokerXml.childNodes[0].childNodes[i].childNodes[12].firstChild.nodeValue;
sTempStartDate = objPokerXml.childNodes[0].childNodes[i].childNodes[13].firstChild.nodeValue;
arTempArray.push(iTempID);//0
arTempArray.push(sgameType);//1
arTempArray.push(sTempGameType);//2
arTempArray.push(scoinValue);//3
arTempArray.push(sjackpotValue);//4
arTempArray.push(sTempBuyIn);//5
arTempArray.push(sTempFee);//6
arTempArray.push(sTempPrizePool);//7
arTempArray.push(iTempMinPlayers);//8
arTempArray.push(iTempMaxPlayers);//9
arTempArray.push(sTempStatus);//10
arTempArray.push(sTempRegoTime);//11
arTempArray.push(sTempRegoDate);//12
arTempArray.push(sTempStartTime);//13
arTempArray.push(sTempStartDate);//14
arPokerDates.push(arTempArray);
}
fnCreateText();
} else {
myTextFormat = new TextFormat();
myTextFormat.size = 10;
tourny_txt.setTextFormat(myTextFormat);
trace("XML FEED DOWN");
tourny_txt.text = "XML_DOWN";
_root.xml_down._visible=true;
}
};
function fnCreateText() {
// trace('arr: '+ arPokerDates);
this.createTextField('tourny_txt',0,5,0,210,270);
var myTextFormat:TextFormat = new TextFormat();
myTextFormat.size = 10;
myTextFormat.font = "Arial"
myTextFormat.color = 0xFFFFFF;
myTextFormat.leading = 2;
for (i=0; i<arPokerDates.length; i++) {
_root.Scolling_text_Jackpots_mc.tourny_txt.text = tourny_txt.text+arPokerDates[i][2]+newline+' '+"Coin"+' '+arPokerDates[i][3]+' '+arPokerDates[i][4]+newline;
this.tourny_txt.setTextFormat(myTextFormat);
}
}
objPokerXml.load('http:www.somefeed.com/someXML');
if (_root.up) {
this.tourney_text.scroll += 1;
} else if (_root.down_bt_mc) {
this.tourney_text.scroll -= 1;
}
this.scrollingText_mc.gotoAndPlay(1);
I think my code is written properly, I just don't know if it conflicts itself online?
Thanks,
Bmcc
Last edited by bmcc81; 05-28-2009 at 10:18 AM.
Reason: xml feed no show
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
|