I could use some help.
just trying to get the
swf file to accept anything that the xml file has changed in it.
basic example is
<?xml version=“1.0” encoding=“UTF-8”?>
<world>
<earth radius=“10”>moon</earth>
<earth radius=“90”>sun</earth>
</world>
if I change the radius in the xml I want it to show in the swf file circle gets bigger or smaller.
the xml file loads right but I cant get it to
update the swf file.
can you help.
this is what I have so far:
are you pretty good using xml in flash 5
I could use some help.
just trying to get the
swf file to accept anything that the xml file has changed in it.
basic example is
<?xml version=“1.0” encoding=“UTF-8”?>
<world>
<earth radius=“10”>moon</earth>
<earth radius=“90”>sun</earth>
</world>
if I change the radius in the xml I want it to show in the swf file circle gets bigger or smaller.
the xml file loads right but I cant get it to
update the swf file.
can you help.
Thanks
this is what I have so far:
// Create new XML Object and set ignoreWhite true
thisXML = new XML();
thisXML.ignoreWhite = true;
// Setup load handler which just invokes another function
// which will do the parsing of our XML
thisXML.onLoad = function (sucess) { if (sucess) {earthMovie(thisXML);}};
// Load up the XML file into Flash
thisXML.load(‘aworldapart.xml’);
// This is the function that will be called when
// our XML document is loaded succesfully
function processWorld (xmlDoc_xml) {
// xmlDoc_xml is now a reference to the XML
// object where our information is stored
for (a in xmlDoc_xml.firstChild.childNodes) {
trace (a+’ '+xmlDoc_xml.firstChild.childNodes[a]);
}
}
function Moon (radius) {
this.radius = radius;
}
function Sun (radius) {
this.radius = radius;
}