Skip to main content
niteshkumar
Inspiring
January 21, 2010
Question

Saving Chat History

  • January 21, 2010
  • 1 reply
  • 577 views

Hi all,

   I'm trying to make text chat application using shared object. I'm using api Shared.getRemote("so",m_nc,true); to make the data persistent. It makes the file with extension fso. I want to save the chat history in notepad for further reference, and also load that data as per requirement. Please help.

Thanx in advance.

    This topic has been closed for replies.

    1 reply

    January 21, 2010

    Do you want to write the file on the server side, or on the client side?

    On the server side, use the File class to create a text file and write a line to it each time a chat message comes in.

    On the client side, you'll need to use AS3/Flashplayer 10 to use the FileReference class (see the save method) to write. In this case, the user will be prompted to create a file location using the browse dialog.

    If you want this to be invisible to the end user, do it on the server side.