ImediaseeUvaultCDNInfluxis
FlashComGuru
 
 

  Active Topics    Memberlist    Search    Help
  Register  Login
Tutorial follow ups
 Flashcomguru Forums | Tutorial follow ups
Subject Topic: Clearing the chat history Part 1 Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
stoem
Big Kahuna
Big Kahuna
Avatar
stoem == Stefan

Joined: 05 January 2004
Location: United Kingdom
Posts: 1079
Posted: 19 March 2004 at 17:20 | IP Logged Quote stoem

post here

__________________
Flashcomguru.com
Back to Top View stoem's Profile Search for other posts by stoem Visit stoem's Homepage
 
Neverm1nd
Flashcom Newbie
Flashcom Newbie
Avatar

Joined: 15 April 2004
Location: Italy
Posts: 8
Posted: 15 April 2004 at 11:03 | IP Logged Quote Neverm1nd

Hi!
I'm newbie using Flash Communication Server Technology and I'm trying to modify the chat component.
I'd like to clear the chat history and i followed the instructions in the tutorial part 1.
But it didn't work, because the history have been clean,
but i can't see anything i write !
Where can I exactly put the code of the tutorial?

I'm trying to modify the sample presentation example from the developer edition of flash communication server mx 1.5.

Anyone can help me?
Back to Top View Neverm1nd's Profile Search for other posts by Neverm1nd
 
stoem
Big Kahuna
Big Kahuna
Avatar
stoem == Stefan

Joined: 05 January 2004
Location: United Kingdom
Posts: 1079
Posted: 15 April 2004 at 11:13 | IP Logged Quote stoem

can't see anything you write? You mean your app isn't working?

stoem


__________________
Flashcomguru.com
Back to Top View stoem's Profile Search for other posts by stoem Visit stoem's Homepage
 
Neverm1nd
Flashcom Newbie
Flashcom Newbie
Avatar

Joined: 15 April 2004
Location: Italy
Posts: 8
Posted: 15 April 2004 at 11:46 | IP Logged Quote Neverm1nd

No I mean that I can see video, I can write, but I can't see on the chat board what I'm writing. But if I comment the script and access the application again, i can see all i have written before! .
I'd like to clear the history for the new users that join the chat and for the following session (i don't want to see tomorrow, when I'll connect to the application, what i have written today )

Thanks
Back to Top View Neverm1nd's Profile Search for other posts by Neverm1nd
 
stoem
Big Kahuna
Big Kahuna
Avatar
stoem == Stefan

Joined: 05 January 2004
Location: United Kingdom
Posts: 1079
Posted: 15 April 2004 at 12:45 | IP Logged Quote stoem

In that case you should double check your changes, it sounds that you are not broadcasting the message out at all now - which is a separate issue from the history itself.

stoem


__________________
Flashcomguru.com
Back to Top View stoem's Profile Search for other posts by stoem Visit stoem's Homepage
 
Neverm1nd
Flashcom Newbie
Flashcom Newbie
Avatar

Joined: 15 April 2004
Location: Italy
Posts: 8
Posted: 15 April 2004 at 13:15 | IP Logged Quote Neverm1nd

I have only added the line for cleaning history and redistributed the avPresence components on the stage! I didn't touch anything else in the original script. It seems that history being cleared everytime I send a message!

Either, I have added 3 more avPresence instances and they don't work...that's mean i can't play video on this new instances....or better, i can't play video on more than 3 avPresence...

Thanks in advance if you want to help me more
Back to Top View Neverm1nd's Profile Search for other posts by Neverm1nd
 
Neverm1nd
Flashcom Newbie
Flashcom Newbie
Avatar

Joined: 15 April 2004
Location: Italy
Posts: 8
Posted: 16 April 2004 at 08:15 | IP Logged Quote Neverm1nd

Hi, I solved the problem about the 3 more avPresence components, but the problem about the history remain....
Back to Top View Neverm1nd's Profile Search for other posts by Neverm1nd
 
stoem
Big Kahuna
Big Kahuna
Avatar
stoem == Stefan

Joined: 05 January 2004
Location: United Kingdom
Posts: 1079
Posted: 16 April 2004 at 08:22 | IP Logged Quote stoem

hi, please post your chat.asc code

stoem


__________________
Flashcomguru.com
Back to Top View stoem's Profile Search for other posts by stoem Visit stoem's Homepage
 
Neverm1nd
Flashcom Newbie
Flashcom Newbie
Avatar

Joined: 15 April 2004
Location: Italy
Posts: 8
Posted: 16 April 2004 at 08:59 | IP Logged Quote Neverm1nd

Thanks stoem...you show me the right way!...Problem solved!

Thanks !
Back to Top View Neverm1nd's Profile Search for other posts by Neverm1nd
 
stoem
Big Kahuna
Big Kahuna
Avatar
stoem == Stefan

Joined: 05 January 2004
Location: United Kingdom
Posts: 1079
Posted: 16 April 2004 at 09:37 | IP Logged Quote stoem

Great,
so what was the problem?

stoem


__________________
Flashcomguru.com
Back to Top View stoem's Profile Search for other posts by stoem Visit stoem's Homepage
 
Neverm1nd
Flashcom Newbie
Flashcom Newbie
Avatar

Joined: 15 April 2004
Location: Italy
Posts: 8
Posted: 16 April 2004 at 09:59 | IP Logged Quote Neverm1nd

I just tell to the application to send, for each new client connecting to the chat a blank history .
So the clients already connect continue to see what they have written and the new ones starts to see history when they connect.

chat.asc
/****    Code ****/

......
......
// The first method called by a client component
     FCChat.prototype.connect = function( client ) {
.....
....
.....

//client.call( this.callPrefix + "receiveHistory", null, this.history );
client.call( this.callPrefix + "receiveHistory", null, "" );

.....
.....
Back to Top View Neverm1nd's Profile Search for other posts by Neverm1nd
 
S_Raghuram
Flashcom Newbie
Flashcom Newbie
Avatar

Joined: 17 August 2004
Location: India
Posts: 26
Posted: 17 August 2004 at 06:34 | IP Logged Quote S_Raghuram

hi Neverm1nd
this is very nice and working fantastic

thanx a lot

Raghu
Back to Top View S_Raghuram's Profile Search for other posts by S_Raghuram
 
summerinside
Flashcom Newbie
Flashcom Newbie
Avatar

Joined: 18 October 2004
Location: United States
Posts: 11
Posted: 18 October 2004 at 23:23 | IP Logged Quote summerinside

I'm running into the same problem as Neverm1nd above and am not sure what tactic I should employ... I've built a chat application using all Flash Communication components. The application works as designed but after adding your client-side code as described in the first tutorial, the application breaks just as Neverm1nd describes:
   the chat window shows no previous text [as planned]
   the input window in the chat component allows a user to imput and submit text [as built]
   upon submiting text through the input window, nothing populates the chat box [failure]
   upon commenting out the code, publishing the application again, and reloading, all the "invisible" code from the previous build is now visible [interesting]

My hunch is that I may need to add additional code around chat_mc.history_txt = ""; so that I only clear the history once. Any thoughts?

I should also add here that I may be trying to stay away from a server-side solution. When all is said and done, we want to save the chat history but just make it so that it's not viewable by new additions to the room. Thanks!

Andy

Edited by summerinside on 19 October 2004 at 19:12
Back to Top View summerinside's Profile Search for other posts by summerinside
 
Yenwod
Flashcom Newbie
Flashcom Newbie
Avatar

Joined: 06 December 2004
Posts: 16
Posted: 11 December 2004 at 19:15 | IP Logged Quote Yenwod

OK I'm completely new to flash communication server and so pretty clueless. I am also running into the same difficulties as Neverm1nd and summerinside (exactly how he described it).
I built a chat thing using the simpleconnect and chat commponent. I only have one .asc file called main.asc and theres only one line in it saying to load the components. It works fine but I want it to clear the history.
I don't have a chat.asc file and so I imagine thats where my problems lie?? What is menat to be in chat.asc? I really need help here.

Thank you.
Back to Top View Yenwod's Profile Search for other posts by Yenwod
 
stoem
Big Kahuna
Big Kahuna
Avatar
stoem == Stefan

Joined: 05 January 2004
Location: United Kingdom
Posts: 1079
Posted: 11 December 2004 at 19:17 | IP Logged Quote stoem

chat.asc is a file inside your scriptlib. check your FCS installation for a folder by that name (sciptlib), it holds all the framework related asc files.

stoem



Edited by stoem on 11 December 2004 at 19:17


__________________
Flashcomguru.com
Back to Top View stoem's Profile Search for other posts by stoem Visit stoem's Homepage
 
Yenwod
Flashcom Newbie
Flashcom Newbie
Avatar

Joined: 06 December 2004
Posts: 16
Posted: 11 December 2004 at 23:14 | IP Logged Quote Yenwod

Thank you very much, it was really annoying me. Now to attempt to get the clear history working
Back to Top View Yenwod's Profile Search for other posts by Yenwod
 

Page of 2 Next >>
  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum

Powered by Web Wiz Forums version 7.6
Copyright ©2001-2003 Web Wiz Guide


   all contents © Flashcomguru.com - Flash® is a trademark of Adobe® 1995-2007