chat component - clear text

Ask a Question related to Macromedia Flash Flashcom, Design and Development.

  1. #1

    Default chat component - clear text

    hi
    i'm trying to clear the text from the chat component. it works fine with
    clearHistory() but it clears it for all ppl what is not what i want. how can i
    clear the text for only 1 client when he enters the chat?

    thank

    k

    Kiriran Guest

  2. Similar Questions and Discussions

    1. chat component, peoplelist, simpleConnect
      Please help! I am struggling to get the chat component working. I have placed simpleConnect, Chat, ConnectionLight and PeopleList components...
    2. clear chat history when disconected
      hi, im new to flash media server, im creating a chat room using the components provided in the sample_lobby file, i have two questions: 1.- how...
    3. issues testing FMS chat component
      Hello guys! I'm new to the media comm and I'm testing the chat component, but I wonder about some issues. Why the simple connect componnent the...
    4. Please help me about the chat component!
      I just follow the instructions of creating the simple chat system, and I found some problems. please help me to solve the problem ...
    5. I need a Chat component for an ASP application
      Hi, We are developing an ASP application that needs a chat area where users can chat 1 to 1 or in chatrooms. I´m looking for a free chat...
  3. #2

    Default Re: chat component - clear text

    Hi, this should be a simple one,
    Try this with the user or any user that you do not want to receive the chat
    history from,

    After they have connected and the history has been loaded:

    chat_mc.history_txt.htmlText = "";

    When you initiate and connect to the chat component by default the user will
    load the history of the chat up until that point. The way the chat component
    works is with two shared objects one is message_so and the other is history_so.
    The history shared object only stores the history of the chat up until the
    point when clearHistory() is called. The way that users receive messages is
    through the message_so. The message_so broadcasts to all users that a new
    message has been sent. It then appends the message to the history_so BUT this
    does NOT broadcast that the history shared object has been updated.
    Essentially, what I am saying is that the only way after connecting that users
    receive chat text is through the message_so. The client holds the history from
    the history_so in memory but you can wipe this at any time on any client. When
    the history_so gets updated, it will not repopulate all of the history.

    Hope this helps,

    choad_man Guest

  4. #3

    Default Re: chat component - clear text

    but where would I put this command? Placing it on the main timeline after the
    chat_mc.connect dosn't work. I could place it directly in the chat component at
    FCChatClass.prototype.receiveHistory, but is this the best spot?

    mshaheen220 Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139