Groups | Blog | Home
all groups > flash data integration > february 2006 >

flash data integration : XML.load with relative paths in Flash 8


SMakinson
2/20/2006 6:47:05 PM
Does anyone know if something has changed in Flash 8 for loading XML in the
same domain? I have never had any trouble with this before. I am working on a
project that relies heavily on XML and I am loading XML fine locally. It also
works in the server when I add the fully qualified domain name before the path
to the XML file. I do not want to include the actual domain name in my loading
paths.

I have tried loading using the path from the root of the site:
/path/to/xml/file.xml
and: xml/file.xml

Both should work, but do not. When I watch the activity window in Safari it
does not even sow an attempt to load the XML file. ANother thought I had was
maybe for some weird reason it wanted crossdomain.xml but this also does not
show in the activity window, so it is not the problem. ( Though I tried adding
it on the server for the heck of it with a wildcard )

I have also tried adding my domain with System.security.allowDomain("*"). I
should not have to do any of these things, but I'm about to the point where I'm
going to look at _level0._url and pull of the domain to append onto my paths. I
would love to know if there is something new in 8 that I am missing that will
make this not necessary.

Thanks in advance!
Motion Maker
2/21/2006 2:26:25 PM
Over http:// is should work.

Not sure about Safari, but I prefer to use a temporary TextArea component or
dynamic TextField and append messages to it to debug over the network. It
will eliminate the apples and oranges.

You could display the results of the success variable in the onLoad; if
success is true, the value of the XML object and you see the XML; and the
value of the xml file name if it is an expression and so on until you see
what is different.





--
Lon Hosford
www.lonhosford.com
May many happy bits flow your way!
[quoted text, click to view]
Does anyone know if something has changed in Flash 8 for loading XML in the
same domain? I have never had any trouble with this before. I am working on
a
project that relies heavily on XML and I am loading XML fine locally. It
also
works in the server when I add the fully qualified domain name before the
path
to the XML file. I do not want to include the actual domain name in my
loading
paths.

I have tried loading using the path from the root of the site:
/path/to/xml/file.xml
and: xml/file.xml

Both should work, but do not. When I watch the activity window in Safari it
does not even sow an attempt to load the XML file. ANother thought I had was
maybe for some weird reason it wanted crossdomain.xml but this also does not
show in the activity window, so it is not the problem. ( Though I tried
adding
it on the server for the heck of it with a wildcard )

I have also tried adding my domain with System.security.allowDomain("*"). I
should not have to do any of these things, but I'm about to the point where
I'm
going to look at _level0._url and pull of the domain to append onto my
paths. I
would love to know if there is something new in 8 that I am missing that
will
make this not necessary.

Thanks in advance!

Motion Maker
2/21/2006 4:44:04 PM
Great - it did not seem like a browser player problem.

--
Lon Hosford
www.lonhosford.com
May many happy bits flow your way!
[quoted text, click to view]
I believe I have solved my issue. thanks for the response. I was using a
class
that extended the XML class and the cache killer bit is causing problems. I
thought I had used this class before in a project, but apparently I am
wrong.

SMakinson
2/21/2006 7:53:43 PM
I believe I have solved my issue. thanks for the response. I was using a class
that extended the XML class and the cache killer bit is causing problems. I
thought I had used this class before in a project, but apparently I am wrong.
AddThis Social Bookmark Button