FLV forrása itt..

stop();
client_cam = Camera.get();
client_cam.setMode(320,288,5);
client_cam.setQuality(0,65);
client_mic = Microphone.get();
client_mic.setRate(22);
Published_video._height = 288;
Published_video._width = 384;
Live_video.attachVideo(client_cam);
Live_video._height = 90;
Live_video._width = 120;
var intervalId:Number;
function doConnect() {
client_nc=new NetConnection();
client_nc.connect("rtmp://192.168.2.122/doc_connect1/room_01", "masodik", "mest");
client_nc.onStatus = function(info) {
trace("Level: " + info.level + newline + "Code: " + info.code);
if (info.code == "NetConnection.Connect.Success"){
elso.text = "Connected";
}
if (info.code == "NetConnection.Connect.Rejected"){
elso.text = "Disconnect";
}
}
}
function publishMe() {
out_ns=new NetStream(_root.client_nc);
out_ns.publish("myTestStream");
out_ns.attachVideo(client_cam);
out_ns.attachAudio(client_mic);
}
function playMe() {
in_ns=new NetStream(_root.client_nc);
Published_video.attachVideo(in_ns);
Output_mc.fromSrvr.attachAudio(in_ns);
in_ns.play("myTestStream");
}
//*********************************************
function masodik_lap() {
gotoAndStop("Masodik");
}
//***********************************************
// Chat text küldő rutin átirja az input szöveget
// a chat változóba
//***********************************************
function chatsend() {
chat = ChatIn.text;
ball_so.data.iras = ChatIn.text;
ChatIn.text="";
}
//**********************************************
function helloResult1(){
this.onResult = function (s)
{
}

}
//**********************************************
function executeCallback() {
szam =8;
// ball_sl.data.text="hell";
chatbe.text=ball_so.data.text;
kr = ball_so.data.nextId;
kr3 =kr;
if (kr >3) {
kr1 = kr >>2;
kr2 = ((kr - (kr1*4))*15);
} else {
kr1 =0;
kr2 = kr*15;
}
masodik.text=kr1+" min "+kr2+" sec";
var my_fmt:TextFormat = new TextFormat();
if (kr1>15) { my_fmt.color = 0x006600;
masodik.setTextFormat(my_fmt);
};
if (kr1<16) { my_fmt.color = 0x3CFF33;
masodik.setTextFormat(my_fmt);
};
if (kr1<3) { my_fmt.color = 0xFF0000;
masodik.setTextFormat(my_fmt);
};
if (kr3==0) { my_fmt.color = 0xFF0000;
masodik.setTextFormat(my_fmt);
masodik.text="Kilépett";
if (kilep_t>0) {
sound1.attachSound('h_kilep');
sound1.start();
kilep_t=0;
}
};
if (kr_t>kr3) {
sound1.attachSound('h_katt');
sound1.start();
}
if (kr_t<kr3) {
kilep_t=1;
sound1.attachSound('h_belep');
sound1.start();
}
kr_t=kr3;
if (ball_so.data.eszk==pozi_tmp) {
} else {
sound1.attachSound('h_eszk');
sound1.start();
}
pozi_tmp=ball_so.data.eszk;
if (ball_so.data.x==pozi1_tmp) {
} else {
sound1.attachSound('h_pozi');
sound1.start();
}
pozi1_tmp=ball_so.data.x;
if (ball_so.data.text==pozi2_tmp) {
} else {
sound1.attachSound('h_text');
sound1.start();
}
pozi2_tmp=ball_so.data.text;
harmadik.text=ball_so.data.belep;
negyedik.text=ball_so.data.belepip;
Poziciok.gotoAndStop(ball_so.data.x);
Eszkozok.gotoAndStop(ball_so.data.eszk);
}
//***********************************************
eszk =1;
pozi =1;
chat ="This is Chat Text";
sped =0;
bill =0;
doConnect();
publishMe();
playMe();
clearInterval(intervalId);
intervalId = setInterval(this, "executeCallback", 1000);
ball_so = SharedObject.getRemote("position", client_nc.uri, false);
ball_so.connect(client_nc);
var sound1:Sound = new Sound();
Poziciok.gotoAndStop(2);
//**********************************************
function elso_lap() {
gotoAndStop("Kezdes");
}
//***********************************************
function cam1() {
bill =7;
client_nc.call("olvegy",new helloResult1(),bill);
}
function cam2() {
bill =8;
client_nc.call("olvegy",new helloResult1(),bill);
}
//***********************************************