我想用我的服务器创建一个 pm 系统。我怎样才能让它工作?这是我的概念
public function messagePopUp(_userName:String,_target:String,msg:String):void{
//Server sends _userName the person who sent the pm, _target which is you, and a msg (pm)
if(_target == _username){
//Server checks if you're the _target so popUp will show up
//If it does create the pop up and set window title and the msg in popUp chatTxt text area
var win:Window = new Window()
win.title = _userName
win.chatTxt.text = msg;
PopUpManager.addPopUp(win,this,false)
PopUpManager.centerPopUp(win);
}
}