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

flash data integration

group:

XML undefined var



Re: XML undefined var tomeanand NO[at]SPAM hotmail.com
10/14/2005 12:00:00 AM
flash data integration: Hi

Please check you the URL, the file is not there in the path it seems, or else
check the 'slash' ie. / or \.

if you are loading the XML at the first frame of the fla , then it wont load,
flash needs some time to load the xml, so try to access the nodes at 3rd frame
of after that.
try that, if it not works please replay back.

anand
XML undefined var d3mcfadden
10/14/2005 1:39:25 AM
I have a project where I need to load an images into a movie clips based on
urls in that is in an XML file.

[code]
// xml object for xml content (defines sources for selections)

var featured_xml = new XML();
featured_xml.ignoreWhite = true;
featured_xml.onLoad = function(success){
if (success) trace(this);
else trace("Error loading XML file"); // no success? trace error (wont be
seen on web)
}

// load
featured_xml.load("xml/fMovies.xml");
var featuredMovie = featured_xml.firstChild.childNodes;
featured_mc.loadMovie(featuredMovie[0])
[/code]

I keep getting this error "Error opening URL
"file:///C|/Documents%20and%20Settings/Robert%20McFadden/Desktop/afc/undefined"

saying my var is not defined how do i define this var?
AddThis Social Bookmark Button