# PB preloading swf containing stream video AS

**URL:** https://forum.kirupa.com/t/pb-preloading-swf-containing-stream-video-as/117828
**Category:** Uncategorized
**Created:** [July 30, 2004, 5:30pm UTC](https://forum.kirupa.com/t/pb-preloading-swf-containing-stream-video-as/117828 "2004-07-30T17:30:46Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![david68](https://avatars.discourse-cdn.com/v4/letter/d/bcef8e/32.png) [@david68](https://forum.kirupa.com/u/david68)
#### Post date: [July 30, 2004, 5:30pm UTC](https://forum.kirupa.com/t/pb-preloading-swf-containing-stream-video-as/117828/1 "2004-07-30T17:30:46Z")

</div>

Hello,

it seems i have problems to preload my swf documents containing  
embed streaming video (flv)(netStream object, no components).  
THe prelaod MC bar keeps on loading again and again without  
going to image 2.

Here is the simple code i use with preload bar:

```auto
  
onClipEvent (enterFrame) {
 this.preload() ;
}

```

and the code on the action layer (image 1):

```auto
 
movieClip.prototype.preload = function() {
 
 this.Total = _root.getBytesTotal();
 this.Charge = _root.getBytesLoaded();
 
 this.rapport = Math.round((this.Charge)/(this.Total)*100);
 
 _root.progression = Math.round(this.rapport)+" %";
 this.gotoAndPlay(this.rapport);
 
 if (this.rapport == 100) {
  gotoAndPlay(2);
 }
};
 

```

This code works with every other type of documents,  
so i wonder if there is not a conflict with embed video AS somewhere…  
Can someone help here?
