all groups > flash data integration > august 2005 >
You're in the

flash data integration

group:

the XML Connector - I simply can't understand it


the XML Connector - I simply can't understand it yntze
8/29/2005 10:20:48 AM
flash data integration:
Dear people,

at the moment I'm working on a page with a very very very simple goal:

- get a text from an xml file into flash.

Now as I may believe Macromedia - I shoudl use the 'xml connector component -
so I dit. But whatever I do. I simply don't get any text into my text field.

so.. Would someone be so kind to explain me the very basics of how I should
use this component?

One forehand thanks for your support !!!


Yntze Heida
http://www.yntze.tkText
Re: the XML Connector - I simply can't understand it tmat311
8/31/2005 10:12:21 PM
I was having the same problem, and I'm new to XML also. Here's what I've done
so far:






My XML file named "xml.xml":

<menu>
<header title="Header">
<link source="http://www.website.com">Link Text</link>
</header>
</menu>

********
Then in Flash I created 3 dynamic text fields. And named them "url",
"link", and "header".

var my_xml = new XML();
my_xml.ignoreWhite = true;
my_xml.onLoad = function(success){
currHead = my_xml.firstChild.firstChild;
currLink = my_xml.firstChild.firstChild.firstChild;
link.text = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue;
url.text = currLink.attributes.source;
header.text = currHead.attributes.title;
}
my_xml.load("xml.xml");


This is VERY simple -- all it does is display the XML in the text boxes.
Re: the XML Connector - I simply can't understand it scottPadgett
9/1/2005 12:00:00 AM
Hi,

I got a jump on accessing data in a loaded XML file by checking out the
XML-relevant part of this tutorial for a gallery app, and then looking at the
Actionscript Reference in Flash for the XML class as I started to figure things
out.

http://www.kirupa.com/developer/mx2004/xml_flash_photogallery4.htm

Hope this helps.

Re: the XML Connector - I simply can't understand it yntze
9/1/2005 5:59:56 PM
Re: the XML Connector - I simply can't understand it mPrezner
9/2/2005 12:00:00 AM
Hello - I am also having a similiar issue, and I've been working around the
kirupa web site; still no working my way through it.

I am trying to pull in information from this XML file:
http://www.carrentals.com/rss.xml to a simple banner ad. I've been playing
around with the Parent/Child/Node hirerchy; but I am having a disgusting amount
of difficulty.

Any help would be appreciated.
Re: the XML Connector - I simply can't understand it WaterTower
9/2/2005 12:00:00 AM
AddThis Social Bookmark Button