Stuck in XmlSocket chat! Please help!

2 years ago, i develope 1 chat app using ActionScript for chat Client!
It work smoothly!
** But now, prob occur!!
Client always connect to server verry well! But the onData event not fired!!
Somtime use FF is ok, IE not
Sometime FF 1.6 ok, FF 2.01 not, IE 7 not.!!!

[COLOR=Red]Especially, when i run the .swf file itself, everthing is ok!! But when i embed it in to html file, and browse in browser, problem occur![/COLOR]
**

I spent the whole day searching on Internet, but found nothing wrong in my code!!
I think this may be a prob with browser new version, or flashplayer, or … I don’t know!

And, perhaps the xml msg can not send to Server, perhaps the msg return can not send to client, BECAUSE, when i trace, founding [COLOR=Red]onData() event not invoked!!![/COLOR]

Please help!
This is my AS client code, please not to focus syntax error!

var s:XmlSocket = new XmlSocket();
s.onConnect = function (success:Boolean)
{
if (success)
{

        }
        else
        {
            _root.msg="connect failed";
            _root.gotoAndStop(2);
        }
     }
    

XMLSocket.prototype.onData = function(data){    
            
    re=_root.de(data).split("¶");
    if (re[0]=="good")
    {
        delete s.onData;
        _root.gotoAndStop(4);
        
    }
    
    if (re[0]=="err")
    {
       _root.gotoAndStop(2);
      }
}


s.onClose= function(src) 
{

trace(“closed”);
}
//

s.connect(“myhost”, 1935)

var my_xml:XML = new XML(myString + "
");
s.send(my_xml);

please help me!!!