I have a flash xml calendar. I am building a website all in Flash, but when I
try to use the loadMovie function to load the calendar's swf file into a movie
clip, the calendar shows up, but it couldn't load the XML data into it, anyone
knows of any solution to that?
MotionMaker - 24 Apr 2007 12:23 GMT
Wow you XML could not be loading for 1/2 dozen to dozen different reasons
everywhere from malformed XML, to capitalization of the XML file name, the file
not in correct folder path and so on.
Based on the one detail that you are using loadMovie perhaps the XML object is
not defined at the time you need it.
Is the XML object in the calendar swf? In the loader swf? Is it dependent on
the calendar swf being loaded first?
huiaaron - 24 Apr 2007 22:20 GMT
if I just run the calendar.swf alone, the XML will load and the calendar works
fine. But when I try to load the calendar.swf as an external swf file within a
movie clip, e.g. calendar, in the index.swf, it won't work.
MotionMaker - 24 Apr 2007 23:06 GMT
It is probably a folder path problem. The relative path should be to the shell
(loading) swf's HTML document.
A trace statement tracing _url where you are doing the XML load will help
provide the needed info on relative pathing. You may need a temporary TextField
and instead of trace use the temporary dynamic TextField to provide the needed
information.
Another solution is to hard code the exact
http://www.yourdomain.com/pathtoXML.theFile.xml into the swf.