Groups | Blog | Home
all groups > macromedia flash flashcom > august 2005 >

macromedia flash flashcom : play, pause, rewind buttons for flash communication server?


Rusty_B
8/25/2005 7:38:25 PM
Am I correct in assuming Flash Communication Server doesn't come with play, pause, and rewind buttons?

bobelzzib
8/30/2005 12:00:00 AM
Hey Rusty if you haven't figured out an answer yet, this is something that I
did with an embedded video object that plays a net stream object ...

First, in Flash, while making the application to play the video, if you go to
Window->Other Panels->Common Libraries->Buttons, you can pick out buttons that
you want to use as play, rewind, pause, FF, etc. Then name the instances.
Then here are some simple examples of how to affect the video as it's playing:
play_pb.onRelease = function() {
play_ns.pause();
};
pause_pb.onRelease = function() {
play_ns.pause();
};
fastForward_pb.onRelease = function() {
play_ns.seek(play_ns.time+5);
};
rewind_pb.onRelease = function() {
play_ns.seek(play_ns.time-5);
};

Of course with a live stream you can pause and when resumed it starts at that
new time live, but a recorded stream will pause and then pick up right at that
same spot. Let's see, rewind and fast forward I don't believe work with live
streams, of course.

Hope this helps!
AddThis Social Bookmark Button