# FLVPlayback bytesLoaded not accessible!

**URL:** <https://forum.kirupa.com/t/flvplayback-bytesloaded-not-accessible/248469>\
**Category:** flash\
**Created:** [January 8, 2008, 3:48pm UTC](https://forum.kirupa.com/t/flvplayback-bytesloaded-not-accessible/248469 "2008-01-08T15:48:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![asscripter](https://avatars.discourse-cdn.com/v4/letter/a/a9a28c/32.png) [@asscripter](https://forum.kirupa.com/u/asscripter)\
**Post date:** [January 8, 2008, 3:48pm UTC](https://forum.kirupa.com/t/flvplayback-bytesloaded-not-accessible/248469/1 "2008-01-08T15:48:18Z")

</div>

Hi, I’m using FLVPlayback component to show a video from the server. On a slow connection the video takes long time in loading even if the metadata is received (i get the onMetadata event fired). But still not even single/first frame of video shows. I get a blank white screen.

Here i also tried to show a preloader till enough of the streaming is done. But i’m not able to retrieve the bytesLoaded and bytesTotal values of the video. Any idea why the below code doesnot work?

```auto
FLVPlayer.addEventListener("progress", Delegate.create(this, progressHandler));

private function progressHandler(event:Object):Void
{    
      trace("bytes data " + event.bytesLoaded + " :" + event.bytesTotal);
}

```

I hv also tried these two but none of them work.

```auto
trace(FLVPlayer.bytesLoaded)

trace(FLVPlayer.getBytesLoaded())

```

It seems that the progressHandler() gets never called. Can anyone tell me how can i show a preloader in the video player?
