deonic
10-25-2004, 09:00 PM
Hi Peter,
My Avatar Chat does not work, even I have already followed some steps you adviced before. The steps are listed as the following.
1. Copying some scripts in the topic of "Avatar Chat code rewritten for ES3.5 (badly but working) have a fun!" to avatar.fla
2. Then, I found it still cannot work properly similar to the Zendo's case.
3. As your mentioned, I ensure the ES running, but cannot find the configuration.xml and the related information in the .fla.
4. Certainly, the configuration.xml (i.e. ServerSettings.xml) is created and the actionscript are added to the frame 1 of my avatar.fla, as the below.
var serverSettings = new XML();
serverSettings.ignoreWhite = true;
serverSettings.onLoad = function() {
var children = this.firstChild.childNodes;
for (var i=0;i<children.length;++i) {
var name = children[i].nodeName
var value = children[i].firstChild.nodeValue
if (name == "IP") {
ip = value;
} else if (name == "Port") {
port = Number(value);
}
}
}
serverSettings.load("ServerSettings.xml");
5. Also, I have modified some lines from:
var es:ElectroServer = ElectroServer.getInstance();
es.setIP("127.0.0.1");
es.setPort(9875);
as
es = new ElectroServerAS();
es.setIP(ip);
es.setPort(port);
6. Finally, it still cannot be connected.
THANKSsss
Remarks:
* Flash MX and ES v.3.5.0 are applied in this case.
My Avatar Chat does not work, even I have already followed some steps you adviced before. The steps are listed as the following.
1. Copying some scripts in the topic of "Avatar Chat code rewritten for ES3.5 (badly but working) have a fun!" to avatar.fla
2. Then, I found it still cannot work properly similar to the Zendo's case.
3. As your mentioned, I ensure the ES running, but cannot find the configuration.xml and the related information in the .fla.
4. Certainly, the configuration.xml (i.e. ServerSettings.xml) is created and the actionscript are added to the frame 1 of my avatar.fla, as the below.
var serverSettings = new XML();
serverSettings.ignoreWhite = true;
serverSettings.onLoad = function() {
var children = this.firstChild.childNodes;
for (var i=0;i<children.length;++i) {
var name = children[i].nodeName
var value = children[i].firstChild.nodeValue
if (name == "IP") {
ip = value;
} else if (name == "Port") {
port = Number(value);
}
}
}
serverSettings.load("ServerSettings.xml");
5. Also, I have modified some lines from:
var es:ElectroServer = ElectroServer.getInstance();
es.setIP("127.0.0.1");
es.setPort(9875);
as
es = new ElectroServerAS();
es.setIP(ip);
es.setPort(port);
6. Finally, it still cannot be connected.
THANKSsss
Remarks:
* Flash MX and ES v.3.5.0 are applied in this case.