# Seek ns.bytesLoad Issues

**URL:** <https://forum.kirupa.com/t/seek-ns-bytesload-issues/283760>\
**Category:** flash\
**Created:** [March 10, 2009, 8:22pm UTC](https://forum.kirupa.com/t/seek-ns-bytesload-issues/283760 "2009-03-10T20:22:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![snozbunny](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@snozbunny](https://forum.kirupa.com/u/snozbunny)\
**Post date:** [March 10, 2009, 8:22pm UTC](https://forum.kirupa.com/t/seek-ns-bytesload-issues/283760/1 "2009-03-10T20:22:31Z")

</div>

Hello everyone,

I’m at my wits end with some sort of bug I ran into this morning. There seems to be a problem when I request the last available frame of a video I’m streaming.

ns.seek((ns.bytesLoaded / ns.bytesTotal) \* nsDuration);

Sometimes it works, sometimes it returns a unhandled event. (Invalid seek time)

I’m confused and I haven’t got a clue what I’m doing wrong since I used this type of code before on more than one occasion.

If anyone can provide insight it would be greatly appreciated. Thx.
