Here is my problem, I have 3 text area I am trying to pull data to from an xml document. My problem is - the got dam textAreas pull the sam thing.
textArea
- Header
- Publisher
- Body
Here is the Action Script
//#include “fullystory_actions.as”
//This removes the 3D look from the text area.
story_details.setStyle(“borderStyle”,“none”);
headline.setStyle(“borderStyle”,“none”);
headline.setStyle(“fontSize”,“20”);
publisher_info.setStyle(“borderStyle”,“none”);
////////////////////////////////////////////////
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
headliner = [];
published = [];
body = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
headliner* = xmlNode.childNodes*.childNodes[0].firstChild.nodeValue;
published* = xmlNode.childNodes*.childNodes[1].firstChild.nodeValue;
body* = xmlNode.childNodes*.childNodes[2].firstChild.nodeValue;
}
firstImage();
} else {
content = "file not loaded!";
}
}
/////////
// Initialize the TextArea component 1
headline.html = true;
headline.wordWrap = false;
headline.multiline = false;
headline.label.condenseWhite = true;
// Initialize the TextArea component 2
publisher_info.html = true;
publisher_info.wordWrap = false;
publisher_info.multiline = false;
publisher_info.condenseWhite = true;
// Initialize the TextArea component 3
story_details.html=true;
story_details.wordWrap = true;
story_details.multiline = true;
story_details.label.condenseWhite =true;
// Load xml content
fullstory = new XML ();
fullstory.ignoreWhite = true;
fullstory.load(“fullstory.xml”);
fullstory.onLoad = function (success)
{
if (success)
{
story_details.text = fullstory;
headline.text = fullstory;
publisher_info.text = fullstory;
}
}
headlines.text = headliner[1];
publisher.text = published[1];
details.text = body[1];
Here is the XMl code:
<headliner>
<headline> Holla Vision has signed with MTV2 | 2005<\headline>
<\headliner>
<publisher>
<published> Published Jul 06,2005 13:51 EDT || AP <\published>
<\publisher>
<fullbody>
<body> BLOIS, France(AP) Lance Armstrong’s Discovery Channel squad won the team time trial at the Tour de France on Tuesday, handing the six-time champion the yellow jersey as overall race leader.
The 33-year-old Texan led his squad to victory for the third straight year in the time trial, clocking 1 hour, 10 minutes, 39 seconds for the 41.85-mile trek from Tours to Blois. Team CSC was second.
“It’s always nice to be in yellow,” Armstrong said. “There are three or four flat stages coming, so it will not be easy to defend the jersey.”
Team CSC was runner-up, finishing a mere 2 seconds behind. American rider David Zabriskie of CSC, who had come into the stage in the leader’s yellow jersey, fell less than a mile before the finish.
Zabriskie, his uniform torn and left thigh scraped, fell to ninth overall. X-rays on his right knee, elbow and wrist revealed no broken bones. He said he was determined to start on Wednesday.
“Losing like that is like a punch in the stomach,” said teammate Bobby Julich. “David is terribly upset. He feels responsible for losing the yellow jersey. But I told him not to worry about it and that everything he’s done up until now has been really superb.”
Armstrong sympathized with his former U.S. Postal Service teammate.
“The (team time trial) is so hard at the end that everybody’s on the limit, everybody’s a little bit cross-eyed,” Armstrong said. “You come into the city, there’s a lot of turns and you get the whipping wind and it’s easy to make a mistake like that. So I can clearly see how it happened, but it’s clearly a bad one for him.”
Armstrong will wear the yellow jersey for the 67th time in his Tour career. His teammate, George Hincapie, is second overall, 55 seconds behind.
Under overcast skies, the nine-man teams set off one-by-one through the Loire River valley, known for its majestic medieval and Renaissance castles, and through the town of Ambroise where Leonardo da Vinci spent the last years of his life.
The Discovery teammates took turns leading the single-file pack of riders.
<\body>
<\fullbody>
what happens is when I publishe th samething is going into Header, Publisher and body.
I want header to have what I only typed in it as well as Publisher.
Please help me fix this thank you