PDA

View Full Version : Avatar Chat Problem



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.

jobem
10-25-2004, 09:20 PM
Hi Deonic,

Download the latest ElectroServer and install it. I have taken that avatar example, made sure it was working, and included the source files with that build. So you can use that one!

Let me know if you have trouble.

peterblaze
10-26-2004, 12:23 AM
Hi Deonic,
as Jobe noted files provided with installation are ready to go, I've just tested with ES 3.6.1 fresh install,

But:

Flash MX and ES v.3.5.0 are applied in this case.
That coub be the reason, becouse action script provided in web post or in source file in installation problem are rewrittne to AS2 usage with new FMX2004 (Flash plugin v.7 export),

hth,
regards,
peter

deonic
10-28-2004, 07:36 AM
Peter and Jobe. Thank you very much.

I will try this. :smilewinkgrin: :smilewinkgrin: :smilewinkgrin: