Skip to main content
Anonymous507
Known Participant
March 23, 2011
Question

Need help on chatroom creation

  • March 23, 2011
  • 1 reply
  • 1011 views

I am preparing a multi user chat application using FMS and flash. In which the Users can able to chat with each other based on the selected chat room.

For example, my chatroom will be created with below method.

My chat application ‘main.asc’ was in FMS application folder  chat/

To create a chat room, I will create the application instance by chat/chatroom. For now my chat application is working fine.

Now I want to prepare a admin page, the admin can able to see all user chat history and he can also send message to all the chat users, irrespective of chat room. i think the admin should create common application instance.

I am not sure how to done this. Any suggestion or guidelines please.

    This topic has been closed for replies.

    1 reply

    Participating Frequently
    March 29, 2011

    Hi,


    You have not mentioned what logic are you usung in your chat application. Are you using shared objects for your chat application or any other?

    Anonymous507
    Known Participant
    March 29, 2011

    thanks for your reply, manish

    I have modified the program, now my multi room chat application is working fine. i am not using shared object here.

    Let me explain my chatroom creation logic.

    Please read the logic below and confirm, whether I am in the correct path.

    Previously I have created my application instance (rtmp://myserver/chat/chatroom) along with chat room. Now I am creating a common application instance for all users even admin user. Desired chat room will passed as a parameter during onconnect() itself.

    I have added a condition in my server script for broadcasting a message. Whenever the condition receives the message it will broadcast that message to all the clients, who has logged in same chat room and admin too.

    For now the admin user can able to see all the chat history of the connected client. Actually I want to save all my chat history in a database. I am working on websevice to save this.

    Thanks again

    Participating Frequently
    April 8, 2011

    Hi,

    You can refer to the this video: http://fmsguru.com/showtutorial.cfm?tutorialID=51

    Hope this serves your purpose.