maxelcat
Technical User
- Oct 19, 2006
- 79
Hi
I am making my own player. I want to add the above control. I can make stop and start buttons work using the code below (by pausing / playing the stream) , but I can't seem to get seekBar to work .
What is the equvilent code please? Or maybe its a whole load more complicated. I have checked out the documentation and googled it, but to no avail so far.
Many thanks
Edward
"I love deadlines - I love the noise they make as they go wishing past" (not mine of course, but very ture...0
I am making my own player. I want to add the above control. I can make stop and start buttons work using the code below (by pausing / playing the stream) , but I can't seem to get seekBar to work .
What is the equvilent code please? Or maybe its a whole load more complicated. I have checked out the documentation and googled it, but to no avail so far.
Many thanks
Edward
Code:
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
var myVid:Video;
myVid.attachVideo(ns);
var playButton:Button;
var stopButton:Button;
var seekBar:Button;
playButton.onPress = function () {
ns.pause(false);
}
stopButton.onPress = function () {
ns.pause(true);
}
var videoList:Array=new Array("Warrior.flv","MAMMAAND.flv");
"I love deadlines - I love the noise they make as they go wishing past" (not mine of course, but very ture...0