Help me please!
How to receive message from a server about a new starting room at the first connection?
lines 876 in Global.as
/*
-
First connection : We try to open the windows. Do it one time only
*/
var timerTest;
function endTimer(){
if(connection.isLoggedIn()){
addMenuWindow();
PrivateData.getPrivateBookmark();
if(CHATNAME!=’’’’)
addPublicChatWindow(CHATNAME,"",conference);
wait._visible=false;
indic.gotoAndPlay(“connecte”);
clearInterval(timerTest);
colorierBuddy();
}
}
timerTest = setInterval(endTimer,500); //Retry every half second
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
/*
-
my First connection
*/
var timerTest;
function endTimer(){
if(connection.isLoggedIn()){
addMenuWindow();
PrivateData.getPrivateBookmark();
var MSGRoomInit = new Message(“admin@localhost”, null, “myNewRoom?”, "XIFFIAN Message from "+_root.pseudo, Message.CHAT_TYPE);
root.connection.send(MSGRoomInit);
var myNewRoom = ??? ;
CHATNAME = myNewRoom;
if(CHATNAME!=’’’’)
addPublicChatWindow(CHATNAME,"",conference);
wait._visible=false;
indic.gotoAndPlay(“connecte”);
clearInterval(timerTest);
colorierBuddy();
}
}
timerTest = setInterval(endTimer,500); //Retry every half second
Or (a variant 2) how to receive value from vcard to my variable?
null