Hi to all,
I am endurance a really strange problem.
I have an application in flash mx, and I use an xml file to know chapters and images to load. So I use the xml file hei.xml, but i have another location c:\hei\files\hei.xml in case of upgrade or install the application.
I use the following script to check the existence of the new file before i load the default:
var my_xml = new XML();
my_xml.ignoreWhite = true;
my_xml.onLoad = function(success:Boolean) {
if (success) {
//-- The file exists and i use it
} else {
//-- I load the other xml file
my_xml.load("hei.xml");
}
}
//and I call the xml file
my_xml.load("c:/hei/hei.xml");
When I run the swf inside the Flash i get in the output window
Error opening URL "c:/hei/hei.xml",
But everything is working despite the error.
The same thing happens when I run the swf from Explorer and Opera

. But..........
In Netscape and mozilla the process stops when the error occurs

.
Basically the error occurs at my_xml.load("c:/hei/hei.xml"); and I never have the change to check the success of onload function

.
Netscape stops on that error, explorer by bus it and works.
I found that the problem occurs and when flash is used in director that may explain my problem:
The Flash onLoad callback handler does not function correctly
http://www.macromedia.com/support/di...handlers_f.htm
But i can't use the work around because i don’t use director

.
I tried a solution that is posted at:
http://www.flashguru.co.uk/000310.php
But causes the same problems (the onload never has the change to fire)

.
I tried to use “try {}” and “catch {}” but or i did something wrong or that method cannot apply to onload function.
I really would like to have multi browser support, although after few days of nerve braking efforts i starting to thing that this is not a very good idea.
If anybody knows how to overcome this obstacle, i would really appreciate it.
Thank you in advance
Thanos