are there times when that works? i would think it would fail every time because of a cross-domain security issue. i always use php (in the same domain as the swf) to access cross-domain xml files and let the same-domain php file feed the xml file to the swf. that circumvents the security issue.
Do you believe this is a security issue?
The frequency when the map works appears to be random - it is working right now, but 10 minutes ago it wasn't. It also does not matter what computer at what IP address I am at - it may or may not work when I test it out.
When you say that you php to "access cross-domain xml files", I am assuming you are referring to the apparent xml file I reference earlier (within the error). I have tried accessing the xml file, http://maps.yahooapis.com/xml/apiconfig.xml, and it does not load (at least from my browser). Could this be part of the problem? Maybe it is not a real xml file? Or can I not access it because of the possible security issue?
If the xml file really does exist, should I have someone write a script (as my php knowledge is limited) to simply download the xml file (or copy it) to a local directory? Or can that even work...again...limited knowledge.
if it works sometimes, it's not a security issue. do you see what you expect occassionally?
i can load an xml file via ff but ff complains the ff is not well-formed and displays one line - presumably the one with the error. but it looks ok to me:
XML Parsing Error: not well-formed Location: http://maps.yahooapis.com/xml/apiconfig.xml Line Number 17, Column 74:
Oh yes - occassionally I see what I want to see, which is the map itself.
I am not familiar with what ff is, but regardless, do you think that running that php script you talking about before would be helpful?
I am really not too sure where to go next, unfortunately.
ff is firefox.
what's your website url. i may be able to pickup an error message.
Sure - when the page is loaded it is the third button at the bottom - "Company Listings" - if all you see is text saying "we are performing site maintenance..." it did not work (ie. the problem has occurred).
your site crashed my browser at my office using cpu cycles.
at home i was able to test your site several times. it worked fine the first few times i loaded your page (though it still consumes up to 20% of my cpu). the last time i saw this message:
then when i clicked on that 3rd button, i saw no yahoo map and instead saw your site maintenance message.
so, there is a security problem. i just don't understand why it's not occuring each time your site loads.
are you doing something to handle security issues?
No, I'm not doing anything to handle security issues.
What I have done is downloaded all the .as files that yahoo uses for their maps (from http://modestmaps.mapstraction.com/trac/browser/trunk/reference/YahooMaps/com/yahoo/maps?r ev=6), including the xml file (http://maps.yahooapis.com/xml/apiconfig.xml).
What I am thinking, correct me if I'm wrong, if I go through all the class files and change their names from "com.yahoo.maps.insertscriptname1.as" to something defining my own server (ie. mikeraydesign.maps.insertscriptname1.as), and point to the xml file from the one .as file that points to the one with the security issue, this might work.
I don't know if it will, but I don't think it can hurt. What do you think?
Regardless, lets say I put all the files into my own folder on my server, (ie. www.mikeraydesign.ca/maps/), how would I go about importing those scripts from my fla? The fla needs to import 4 initial classes, which then point to all the others (in the link I have above). How do you point to online class files? Would this even work?
i can't see that helping. and you can't just change those names. they indicate the directories that contain the .as files. so, the file com.yahoo.maps.insertscriptname1.as must be in the maps subdirectory of the yahoo directory which must be in the com subdirectory of the directory that contains your swf's embedding html file. is it?
Yes, but if all the .as files are downloadable and can be placed on my server, then shouldn't it work? I would just need to import the class files from my server on execution.
Anyways, if this idea doesn't work (which I haven't been able to do so far) what might be my best option?
i really don't understand how you can have an intermittant security issue unless there's some asynchronous event that's causing a security file to download, usually before the yahoo xml file is accessed, but occassionally not before the xml file is accessed.
i would recommend using the yahoo api exactly as yahoo directs. (and you may be doing that now. i'm not sure.) if you are already doing that, search google to see if someone else has encountered this error message using yahoo maps and see if they have a solution.
if that gets you no help, i would then use php to access the yahoo xml file and feed that to flash.