Groups | Blog | Home
all groups > macromedia flash flashcom > march 2006 >

macromedia flash flashcom : Recording with timed actions


Vinicius Hacebe
3/15/2006 9:54:39 PM
Hi folks...

I would like to know how to build a live recorder that can save the time that
an action is called... for example Breeze... when you record, when u click on
the screen share, it stores the time you have called that function ex.:
00:04:38. and in the playback, this function happens again at the right saved
time... I want to add a video to that, so I want to Sync the video with the
actions, and chat too... you can see the messages comming to the chat component
as if it were all live...

I hope you can solve my problems... I trust on You! tnx
JayCharles
3/15/2006 11:30:38 PM
Let's assume you have a netstream named myStream, and it's recording. Try
something like this:

myStream.doSomething = function(val){
trace(val);
}

myStream.send(doSomething, "Hello World");

When the video stream plays back, it will call the function again.


Vinicius Hacebe
3/16/2006 12:21:11 AM
Sorry for my inconvenience but... could you be more clear!!!
im newbie with FMS, but iam learning a lot of things all alone

let me see if i understood.


//this is the function that is called
myStream.doSomething = function(val){
trace(val);
}

//and this one will send the var when an action happens
myStream.send(doSomething, "Hello World");

but... when im playing back, these functions will happen automatically???

sorry for my bad english
JayCharles
3/16/2006 1:30:41 AM
Yes. If you are recording the stream, the function will be called automatically on playback at the same time in the video.

Vinicius Hacebe
3/17/2006 12:56:59 AM
Can u give a sample of its... but explaining what happens in each line???

Sorry. but ive tryed, and i could get success only with live recording and
live receiving with that code... now i want to make a playback and sync the
data... i failed

tnx
Vinicius Hacebe
3/18/2006 12:20:26 AM
Hi folks... I could figure it out ... tnx for the reply Jay Charles...

I have a doubt...

I want to record the chat too... is it possble, using oly that function... I
was trying... but only one could send!!!

One other...

I was trying to send this
ns.send("sendMessage", "<b>" add _root.userName add ":" add "</b>" add
label1.txt);


when i receive... the HTML tags appears instead changing in the text box... it
displays something like this:
Hacebe: ol?

<b>undefined:</b> Ol?....
<b>undefined:</b>asdas

I dont know how to make this stuff works...
but im worried about letting people chat!!!

tnx
JayCharles
3/18/2006 12:25:17 AM
For playing back:

myConnection = new NetConnection();
myConnection.connect("rtmp://myServer.myDomain.com/appName");
myStream = new NetStream(myConnection);
myStream.play("nameOfYourRecordedStream");

myStream.doSomething = function(val){
trace(val);
}

That's really all there is to it.

Also, in my first post, there is an error. This line:

myStream.send(doSomething, "Hello World");

should be:

myStream.send("doSomething", "Hello World"); < Notice the quotes around the
function name.
Vinicius Hacebe
3/19/2006 6:19:56 PM
Hi folks...

Im happy because I have almost finished my app!!!

It works like breeze but with less functions.

but im working hard on it and trying to finish it!!!
i have also recordered a sample of how good is that app!!!

here it goes:

http://www.hacebe.gotdns.com/conferencerecording/room_enter.php?instanceName=tha
nxs&confTitle=Thank%20for%20all%20folks!!!&userName=Vin?cius%20Hacebe
AddThis Social Bookmark Button