# LOADBAR problem in a FLV not working right

**URL:** <https://forum.kirupa.com/t/loadbar-problem-in-a-flv-not-working-right/199228>\
**Category:** flash\
**Created:** [August 31, 2006, 8:03pm UTC](https://forum.kirupa.com/t/loadbar-problem-in-a-flv-not-working-right/199228 "2006-08-31T20:03:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevin1886](https://avatars.discourse-cdn.com/v4/letter/k/ce7236/32.png) [@kevin1886](https://forum.kirupa.com/u/kevin1886)\
**Post date:** [August 31, 2006, 8:03pm UTC](https://forum.kirupa.com/t/loadbar-problem-in-a-flv-not-working-right/199228/1 "2006-08-31T20:03:30Z")

</div>

I’m trying to create a player for my FLV it all works get but my loadbar does not work properly…it goes from 0 too 100% when it’s suppose to gradually grow in length as the FLV is loaded. I have a link to the FLA and a link to show how the FLV just goes from 0 to 100…I don’t know what the problem is I’m racking my brain over this…it’s probly somethign simple I’m just over looking.

[Download the FLA](http://www.mackdesignsonline.com/1amackdesigns/radioactive//videoproblem/Loadbar.fla).

Video [the demo](http://www.mackdesignsonline.com/1amackdesigns/radioactive//videoproblem/Loadbar.html)of how the loadbar doesn’t work.

Here’s the action script too:

```auto
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
ns.setBufferTime(10);
ns.onStatus = function(info) {
 if(info.code == "NetStream.Buffer.Full") {
  bufferClip._visible = false;
 }
 if(info.code == "NetStream.Buffer.Empty") {
  bufferClip._visible = true;
 }
 if (info.code == "NetStream.Play.Stop") {
        bufferClip.seek(0);
        gotoAndPlay("Animation", 1);
    }
}
 
 
theVideo.attachVideo(ns);
ns.play("clip.flv");
rewindButton.onRelease = function () {
 ns.seek(0);
}
playButton.onRelease = function () {
 ns.pause();
}
var videoInterval = setInterval(videoStatus,100);
var amountLoaded:Number;
var duration:Number;
ns["onMetaData"] = function(obj) {
 duration = obj.duration;
}
function videoStatus() {
 amountLoaded = ns.bytesLoaded / ns.bytesTotal;
 loaderx.loadbarxx._width = amountLoaded * 720;
 loaderx.scrub._x = ns.time / duration * 720;
}
onEnterFrame = function(){
videoStatus()
}
stop();

```
