Skip to main content
Participant
April 16, 2006
Question

Adding Playback Controls

  • April 16, 2006
  • 1 reply
  • 315 views
I am trying to add the fast forward and fast rewind playback controls to my video object so that when the user presses the button, the movie will ffwd/frwd. Im using a video object so the movie is streamed using the NetStream and NetConnection values and the flv is loaded from an external source. I have managed to get the pause and play functions working using the following actionscript:

var playButton:Button;
var pauseButton:Button;

myNS.play("movie.flv");
myNS.pause(true);

//Plays movie
playButton.OnPress = function() {
myNS.pause = (false);
}
//pauses movie
pauseButton.OnPress = function() {
myNS.pause = (true);
}

...but im not sure of the AS to use for making functional fast rewind and fast forward buttons . Can anyone help?
This topic has been closed for replies.

1 reply

Community Expert
December 9, 2020