Adding Playback Controls

New Here ,
Apr 16, 2006 Apr 16, 2006

Copy link to clipboard

Copied

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?
TOPICS
ActionScript

Views

153

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Dec 08, 2020 Dec 08, 2020

Copy link to clipboard

Copied

LATEST
This video will teach you how to create navigation buttons using Actionscript 3.0 in Flash CC / Animate CC. Downloadable .fla file below. Click it if you wan...

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines