Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sendAndLoad and onData

Status
Not open for further replies.

mike314

Programmer
Jun 24, 2003
143
US
A couple of silly xml questions:

1. If i override XML.onData event, do I have to some how call the function?
example here a sample override

XML.prototype.onData = function (src) {
if (src == undefined) {
this.onLoad(false);
//more stuff
//more stuff
} else {
this.parseXML(src);
this.loaded = true;
this.onLoad(true);
//more stuff
}
}


do I have to later call onData like this
XML.onData(parameter);



2. If my file exists locally on my computer, can I use XML.sendAndLoad where the url is a full url to a site? or is that a security issue and I can only sendAndLoad locally on the file system? Currently I am getting an error opening a url. I have access to that url but testing locally on my pc. Do i have to be on the file system for this to work?

thanks
 
1. XML.onData is invoked automatically when the data is arrived.
2. If you set the Publish Settings Local Playback Security to "Network only" then it can talk to the network (but not to the local file system.) Also a movie in Test Movie environment can talk to the network.


Kenneth Kawamoto
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top