ninjapeps
02-27-2007, 02:47 AM
I've got a AS-controlled video object that plays FLVs from a server. everything already works fine but I'd like to be able to navigate through the loaded movie with the progress bar and I've managed this to some extent. for some reason, the movie will only ever jump to the nearest 5% increment of the whole movie (ex: in a 200 second movie, it always goes to the nearest 10). here's the code I used:
stream.seek(timer * this.slider_mc._x / 370);
stream is my NetStream object
timer is the total time of the movie in seconds
slider_mc is an object that tells me what point of the movie I'm in, in reference to the progress bar
370 is the total length of the progress bar
I've checked the values I've been getting for (slider_mc._x / 370) and all the values have been between 0 and 1 so I'm pretty sure that my equation is correct. is this just some weird behavior in the seek method?
<edit>
tried using specific values and it still jumps to the same increments. guess that's the way it really behaves. are there any more precise alternatives?
</edit>
stream.seek(timer * this.slider_mc._x / 370);
stream is my NetStream object
timer is the total time of the movie in seconds
slider_mc is an object that tells me what point of the movie I'm in, in reference to the progress bar
370 is the total length of the progress bar
I've checked the values I've been getting for (slider_mc._x / 370) and all the values have been between 0 and 1 so I'm pretty sure that my equation is correct. is this just some weird behavior in the seek method?
<edit>
tried using specific values and it still jumps to the same increments. guess that's the way it really behaves. are there any more precise alternatives?
</edit>