Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

seekBar

Status
Not open for further replies.

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

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
 
A little more on this:

I know I could use the FLVPlayback component, set it to have no skin, and then drag on a seekBar and use code like

myVid.seekBar=mySeekBar;

the thing is I want to do it with the code that i have started with above. Teaching myself and I want to see how to do it!

Thanks for reading

"I love deadlines - I love the noise they make as they go wishing past" (not mine of course, but very ture...0
 
GREAT resource - thanks for the link

Edward

"I love deadlines - I love the noise they make as they go wishing past" (not mine of course, but very ture...0
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top