0

サーバーで 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);
            }
        }
4

1 に答える 1

0

あなたの質問を正しく理解している場合:

UI 要素にバインドできるパブリック変数を使用してパネル (mx:titlewindow が動作) を作成します。作成するときは、値を入力します。

例: http://www.riacodes.com/flex/build-a-popup-window-with-flex/

したがって、コードを次のように変更するだけです。

var mywin:MyWindowClass = new MyWindowClass();

于 2012-12-08T19:32:28.340 に答える