Problem loading XML file on Hosting server
i having issue wher xml data file lods fine , displays on testingg server returns "undefined" when uploaded hosting server.
the page can viewed @ http://www.merryheartpuppets.com/index3.html
the actionscript clip included below:
the page can viewed @ http://www.merryheartpuppets.com/index3.html
the actionscript clip included below:
the reason not working on production server relative path xml different.
you should work changing line:
xn.load("slideshow.xml");
to:
xn.load("/swf/slideshow.xml");
you can read relative paths here: http://www.flashgods.org/forums/viewtopic.php?t=113
also, when viewing xml in either explorer or firefox reported problems format. perhaps still decodes ok in flash... fyi:
a.no whitespace should occur before xml declaration (this unrelated ignorewhitespace option)
b.& should encoded entity : & in caption attribute last photo.
making changes meant view xml correctly in browser.
the other thing that, xml convention (standard? not sure) name nodes , attributes lower case instead of upper case. don't think it's vital, fyi. see examples elsewhere using lower case.
here's xml changes (not case conversion lower case though prevent code working):
you should work changing line:
xn.load("slideshow.xml");
to:
xn.load("/swf/slideshow.xml");
you can read relative paths here: http://www.flashgods.org/forums/viewtopic.php?t=113
also, when viewing xml in either explorer or firefox reported problems format. perhaps still decodes ok in flash... fyi:
a.no whitespace should occur before xml declaration (this unrelated ignorewhitespace option)
b.& should encoded entity : & in caption attribute last photo.
making changes meant view xml correctly in browser.
the other thing that, xml convention (standard? not sure) name nodes , attributes lower case instead of upper case. don't think it's vital, fyi. see examples elsewhere using lower case.
here's xml changes (not case conversion lower case though prevent code working):
More discussions in ActionScript 1 and 2
adobe
Comments
Post a Comment