# Can't seem to preload SWF file that contains FLVplayback component

**URL:** https://forum.kirupa.com/t/cant-seem-to-preload-swf-file-that-contains-flvplayback-component/290774
**Category:** Uncategorized
**Created:** [June 19, 2009, 1:19pm UTC](https://forum.kirupa.com/t/cant-seem-to-preload-swf-file-that-contains-flvplayback-component/290774 "2009-06-19T13:19:25Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![quicksmack](https://avatars.discourse-cdn.com/v4/letter/q/fbc32d/32.png) [@quicksmack](https://forum.kirupa.com/u/quicksmack)
#### Post date: [June 19, 2009, 1:19pm UTC](https://forum.kirupa.com/t/cant-seem-to-preload-swf-file-that-contains-flvplayback-component/290774/1 "2009-06-19T13:19:25Z")

</div>

ok… so i have a SWF file which basically just contains a FLVplayback component…  
the video works fine and all that once the SWF has loaded…

however, i would like to create a preloader for the SWF file while it is still loading the player…  
i cant seem to make it work…

i have 2 scenes…  
scene 1 contains nothing but code…

```auto

this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, updateTextBox);
this.loaderInfo.addEventListener(Event.COMPLETE, loadVideoPlayer);

function updateTextBox(event:ProgressEvent):void
{
    trace(this.loaderInfo.bytesLoaded);
}

function loadVideoPlayer(event:Event):void
{
    play();
}

stop();

```

scene 2 contains two layers: 1.) the FLVplayback component which i gave an instance name of “theVideo” and 2.) an actions layer…

```auto
stop();
import fl.video.*;
theVideo.source = "pc_video.flv";

```

i tested the movie and it only started tracing once it got to about 97%…  
so i figured, maybe i should uncheck the “export in first frame” of the FLVplayback component in the library…  
i published the movie again, still the same results…

i tried to edit the swf publish settings to “export classes in frame 2”…  
published the movie, still the same results…

i tried unchecking “export for actionscript” in the linkage of the FLVplayback component inside the library… still the same results

so what the hell am i doing wrong?!?  
by the way, i’m using flash CS3…
