all groups > flash actionscript > october 2004 >
You're in the

flash actionscript

group:

XML.sendAndLoad AND Relative path


XML.sendAndLoad AND Relative path Lazar Kirven
10/21/2004 9:37:01 PM
flash actionscript:
Can you use the XML.sendAndLoad method from a relative path behind the web
server? I thought that this was possible, but I am unable to get it to work.
I appreciate any help!!

var url = "my.php";
var request_xml = new XML()l;
request_xml.sendAndLoad( url, result_xml );
Re: XML.sendAndLoad AND Relative path freddynurk
10/21/2004 10:04:50 PM
Lazar,
Relative paths are fine and works just like absolute URLs.
The thing that you may want to check is that the result_XML object MUST be
defined before calling the sendAndLoad.
This 'silently failing' thing in flash can be nice, but for debugging your
probems, it can be a nightmare.

Hope that helps mate

Peter.



AddThis Social Bookmark Button