A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: send a message in pre game room with smartfox server

  1. #1
    Senior Member
    Join Date
    Jan 2007
    Location
    Barcelona
    Posts
    389

    send a message in pre game room with smartfox server

    Hi,

    I'm trying to build a card game with smartfox server but I can't get past the waiting room which is a clip with the player names and another chat.

    It's very difficult for me to explain so I'm posting my files if anyone wants to try it out. The extension needs to be placed in the smartfox server extensions' folder and the config file to run it needs to be modified as well. Adding a new zone named "botifarra" for the the extension plus a new room name (named Principal).

    I can't seem to understand if a message can be sent from this waiting clip that pops up for the players to join before starting the game. It's another timeline, but I would have thought that messages can be sent from here. In fact the code I have placed in the send message button seems to send the message but I can't retrieve it.

    Would anyone have faced a similar problem using smartfox server by any chance?

    I would appreciate the help to solve this.

    thanks

  2. #2
    Senior Member
    Join Date
    Jan 2007
    Location
    Barcelona
    Posts
    389
    resolved. : _parent.smartfox.sendPublicMessage(input_txt.text) ; + placed the message handler inside the gamePaused function of the tris example
    Last edited by capdetrons; 02-06-2014 at 04:19 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center