| Author |
|
stoem Big Kahuna

stoem == Stefan
Joined: 05 January 2004 Location: United Kingdom Posts: 1079
|
| Posted: 19 March 2004 at 17:20 | IP Logged
|
|
|
post here
__________________ Flashcomguru.com
|
| Back to Top |
|
| |
Neverm1nd Flashcom Newbie


Joined: 15 April 2004 Location: Italy Posts: 8
|
| Posted: 15 April 2004 at 11:03 | IP Logged
|
|
|
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 |
|
| |
stoem Big Kahuna

stoem == Stefan
Joined: 05 January 2004 Location: United Kingdom Posts: 1079
|
| Posted: 15 April 2004 at 11:13 | IP Logged
|
|
|
can't see anything you write? You mean your app isn't working?
stoem
__________________ Flashcomguru.com
|
| Back to Top |
|
| |
Neverm1nd Flashcom Newbie


Joined: 15 April 2004 Location: Italy Posts: 8
|
| Posted: 15 April 2004 at 11:46 | IP Logged
|
|
|
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 |
|
| |
stoem Big Kahuna

stoem == Stefan
Joined: 05 January 2004 Location: United Kingdom Posts: 1079
|
| Posted: 15 April 2004 at 12:45 | IP Logged
|
|
|
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 |
|
| |
Neverm1nd Flashcom Newbie


Joined: 15 April 2004 Location: Italy Posts: 8
|
| Posted: 15 April 2004 at 13:15 | IP Logged
|
|
|
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 |
|
| |
Neverm1nd Flashcom Newbie


Joined: 15 April 2004 Location: Italy Posts: 8
|
| Posted: 16 April 2004 at 08:15 | IP Logged
|
|
|
Hi, I solved the problem about the 3 more avPresence components, but the problem about the history remain....
|
| Back to Top |
|
| |
stoem Big Kahuna

stoem == Stefan
Joined: 05 January 2004 Location: United Kingdom Posts: 1079
|
| Posted: 16 April 2004 at 08:22 | IP Logged
|
|
|
hi, please post your chat.asc code
stoem
__________________ Flashcomguru.com
|
| Back to Top |
|
| |
Neverm1nd Flashcom Newbie


Joined: 15 April 2004 Location: Italy Posts: 8
|
| Posted: 16 April 2004 at 08:59 | IP Logged
|
|
|
Thanks stoem...you show me the right way!...Problem solved!
Thanks !
|
| Back to Top |
|
| |
stoem Big Kahuna

stoem == Stefan
Joined: 05 January 2004 Location: United Kingdom Posts: 1079
|
| Posted: 16 April 2004 at 09:37 | IP Logged
|
|
|
Great,
so what was the problem?
stoem
__________________ Flashcomguru.com
|
| Back to Top |
|
| |
Neverm1nd Flashcom Newbie


Joined: 15 April 2004 Location: Italy Posts: 8
|
| Posted: 16 April 2004 at 09:59 | IP Logged
|
|
|
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 |
|
| |
S_Raghuram Flashcom Newbie


Joined: 17 August 2004 Location: India Posts: 26
|
| Posted: 17 August 2004 at 06:34 | IP Logged
|
|
|
hi Neverm1nd
this is very nice and working fantastic
thanx a lot
Raghu
|
| Back to Top |
|
| |
summerinside Flashcom Newbie


Joined: 18 October 2004 Location: United States Posts: 11
|
| Posted: 18 October 2004 at 23:23 | IP Logged
|
|
|
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 |
|
| |
Yenwod Flashcom Newbie


Joined: 06 December 2004 Posts: 16
|
| Posted: 11 December 2004 at 19:15 | IP Logged
|
|
|
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 |
|
| |
stoem Big Kahuna

stoem == Stefan
Joined: 05 January 2004 Location: United Kingdom Posts: 1079
|
| Posted: 11 December 2004 at 19:17 | IP Logged
|
|
|
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 |
|
| |
Yenwod Flashcom Newbie


Joined: 06 December 2004 Posts: 16
|
| Posted: 11 December 2004 at 23:14 | IP Logged
|
|
|
Thank you very much, it was really annoying me. Now to attempt to get the clear history working
|
| Back to Top |
|
| |