안녕하세요 취업준비생입니다^^;

포폴의 일부분인 화상채팅부분을 개발하던중  ASC쪽 문제가 생겨 이렇게 도움을 청합니다.

모든이에게 브로드캐스팅하는것은 잘되는데 귓속말이 안되네여

 

우선 AS3 PART소스의 일부분입니다

   public function sendingMessageToServer():void
   {
    var msg:String = userID + ": " + txtInputChatText.text;
    
     if(chattingPartnerID == "All")
     {
      fmsNc.call("broadCastMessage", new Responder(resOK, resFAIL), msg);
     }
     else
     {
      fmsNc.call("sendingPrivatemessage", new Responder(resOK, resFAIL), chattingPartnerID, msg);
     }
     
     txtInputChatText.text = "";   
   }

 

그리고 ASC PART소스의 일부분입니다.

application.onConnect = function(newClient, userID)
{

 trace("New Client Connecting...");

 this.acceptConnection(newClient);

 newClient.name = userID;

 this.userListInRoom_so.setProperty(newClient.name, userID);

 this.broadcastMsg("msgFromServer", newClient.name + "님이 접속하셨습니다.");


 newClient.broadCastMessage = function(msg)
 {
  application.broadcastMsg("reciveChatMsgFromServer", msg);
 
  return msg;
 }

 newClient.sendingPrivatemessage = function(chattingPartnerID, msg)
 {
  //trace("application.Clients.lenght: " + application.clients.length);
  
  application.Clients[chattingPartnerID].call("reciveCahtPrivateMsgFromServer", msg);

  return msg;
 }

}

 

빨간색 부분이 문제가 제기되는 부분입니다.

디버그 메시지는 다음과 같습니다.

Sending error message: E:\Flash Media Server 3.5\applications\frensiaVideoChatting-Room\main.asc: line 32: TypeError: application.Clients has no properties
Sending error message: Failed to execute method (sendingPrivatemessage).

별 생쇼를 다해보아도 안되네여;;;

 

구글링에서는 이렇게 하면된다는데.... 아 정말 아멘입니다.

 application.Clients[chattingPartnerID].call("reciveCahtPrivateMsgFromServer", msg);

 

도와주세요. 취업하고싶습니다.