I'm getting problem with my Development Cluster, when i'm sending a message with variables C#->Flash they're always returns 0 in AS3. Everything works well at Main Cluser, but dev...
Simple code:
- Code: Select all
C#
{
...
public override void GotMessage(Player player, Message message)
{
switch(message.Type)
{
case "test": // I tried all 3 ways
Message msg = Message.create("msgTest");
msg.Add(4);
int ivar = 4;
player.Send(msg);
player.Send("msgTest", 4);
player.Send("msgTest", ivar);
break;
}
}
}
- Code: Select all
AS3
{
...
private function handleJoin(connection:Connection)
{
connection.send("test");
//tried this one:
connection.addMessageHandler("msgTest", function(m:Message, mynum:int)
{
trace(mynum);
});
//and this one:
//connection.addMessageHandler("msgTest", function(m:Message)
// {
// trace(m.getInt(0));
// });
}
}
Output Main Cluster:
4
4
4
Output Dev Cluster:
0
0
0
Do you have any idea how to solve this problem?
With Broadcast() have same problem.
BTW. Sorry for my english, still learning.