can some 1 reffer me to an example code that let me to chat with another user with a webcam+chatting with him in the same time using flash communication server 2
thanks in advace
peleg
Printable View
can some 1 reffer me to an example code that let me to chat with another user with a webcam+chatting with him in the same time using flash communication server 2
thanks in advace
peleg
second how can i for example create a private room for only 2 pepole
and then as an admin only i and only i as an admin can enterthe room an talk to both of them!
thnaksi nadvance
peleg
use this script for a starting point in your main.asc file it will restrict the number of users to 2.
from there you will ned to rwrite / add some code to allow the owner/admin to overide those settings.Quote:
application.onAppStart = function() {
application.conf_so = SharedObject.get("conf_so", false);
application.chat = "";
application.confId = 0;
application.maxUser = 2;
};
application.onConnect = function(confClient, name, useMax) {
if (useMax != undefined) {
application.maxUser = useMax;
}
confClient.name = name;
confClient.id = "confMember"+application.confId++;
combo = confClient.name+"~"+confClient.ip;
if (application.confId<=application.maxUser && name != "") {
application.acceptConnection(confClient);
application.conf_so.setProperty(confClient.name, combo);
trace(application.maxUser);
trace(application.confId);
} else {
trace("application rejected");
application.confId--;
application.rejectConnection(confClient);
}
second i entered the lnk with a friend but didnt understand execlly how can i talk 1 on 1 withought any 1 else seeing us on cam?just me and him?
thnaks i nadvance
peleg
that is a public app. The best way would be to use a username and password database that the Flash app would check to give people access. SO that it would be easy to control access if you gets lots of users as everyone would be able to have thier own login info.
He provided you with a prrof of concept.
To add the password protection just do a search of 'database password login' without the ' and you wil come up with 120 reuslts. Some better then others but it all determines your skill level or amoutn willing to learn.
i just started to go into the FLASH COMMUNICATIN SERVER
how to workwith a db/loigin's and so on i know
i will start getting into things
thnks all
peleg
is there a complete advance how to build a video chat with admin features book or tutorial online?
There are plenty of tutorials for building chat applications :)
just do a search of the flash communications server forums,
If you want an fla to play with check these links :-
an audio video chatroom with private chat and some limited admin features
view it here
and download the fla here
hi i am meanhile looking for a way to connect from flash media server 2 to DB to get data from there and by that do some code- can any 1 help on that
?
thnaksdi n advance
peleg
This file is great, but where can i see the system requirements and compatibility? can i just upload it to my server and test it.
Thanks in advance
there is a readme file in the download, but basicly if you run flashcom server on the same machine as your webserver is make the directory free-chat in your flashcom applications folder and paste the contents of my free-chat into it. place the free-chat.swf and free-chat.html files into your webserver.
re start flashcom server and then view the html file from your webserver.
If your flashcom server is not on the same machine or your webserver is hosted elsewhere then you will have to do as above but also edit the simpleconnect button in the fla to point to your own flashcom server.
example rtmp//myflashcomserver.com/free-chat
please do not do as the owner of http://www.hipersohbet.com attempted to do today and connect to my flashcom server as the connection will be refused and the chat will not work.
Hello all im new on this site.
I really like your chat and im going to donate to you as soon as i get the time
i have fcs2 and this chat work's great on it
i like this as with most fcs chat systems the swf works with urls
so if you had the the one lets say .swf and that loaded a login part
i did not want members using any name to login so if you ad that the end of it
.swf?username=
so you see the use goes at the top i coded some php pages to work with my site to with that kind of string to log members stright into that chat...
im very good with php but my flash and actionscripts skills are limited
anyway i want to ask i have the flash server hosted on a remote pc so it's not running on the same server as my site is
how can i change the simple connect to connect to my remote fcs2??
i have been looking but i dont really understand
also could a make it so only my admins can use the commands??
like some in one of the scripts to have a list of names for poeple who can only use the admin functions??
Thanks again for this great chat system
hi
edit the simpleconnect and use something like this for your remote server
(you need to examine the properties of simpleconnect to edit this part.)
rtmp//myflashcomserver.com/free-chat
If you look at the chat section of the fla you will see where the help section is rename /help to whatever you want and make this name available only to your admins.
have fun
wow that was a fast reply
ok i got the simple connect to work
is there a way i could make the /help only for admin to see or like i said before could i add a list of names in the code someware to only allow admins or the names in te list use the commands??
once again thank you for your help and thank you for a great free chat program
oh one last thing sorry for all of this but this is the only chat system i have to learn from..lol
can i make it so it does not show history when i new user comes into the chat?
i mean the way i would do it is make a swf called user.swf this is what my members of my site would see but i dont want any admin functions in there
and then i would make admin.swf
and this would only be for admins and it would have all the admins functions
you see what i mean
i have a chat like that on my site avPRO but it's nut very good and i think i watched my money i just wish i had of found this chat first
open the file pchat_mc edit this section
if (mesg == "/help") {
trace("help called!");
var allips = "<font color=\"#AAAAAA\"><b>Available Commands:</b>";
allips += "<br> /clear";
allips += "<br> /help";
allips += "<br> /ips";
allips += "<br> /kick ip";
allips += "</font><br>\n";
client.call( this.callPrefix + "receiveMessage", null, allips);
return;
}
change the word help to something private for you and your admins.
that will work :)
well this is truly awsome stuff i have had a good look at your site and there is some real coom apps on there can thay be downloaded at all or are thay just for you??
im trying to do a number of things with flash but like i said im very new to it all but the things i have seen with fms2 is awsome thats what made me buy it
i just hope i can learn alot about it and develope my mine apps for my site i want to work on a real time pm system for my site
the programs im having is just trying to understand were i would start..lol
getting my user names into flash and setting permissions is not a problem as that wwould be php based and php happens to be my strong point
if you know of any link for help please let me know
Thanks for this sample, i downloaded it and it worked first time no editing needed.
any more like this going for a newbie :)