MediaPlayback Component and Preloader?

I can get both working seperately, but not together. I’m using the MediaPlayback component in Flash MX 2004 with a percentage preloader (actionscript below).

[SIZE=1]onClipEvent (enterFrame) {
var bytes = _root.getBytesTotal();
var bytes_loaded = _root.getBytesLoaded();
var percentageLoaded = bytes_loaded/bytes;
var myText = Math.round(percentageLoaded*100);
if (bytes_loaded == bytes) {
_root.gotoAndPlay(2);
this.kirupatxt = “movie loaded”;
} else {
_root.gotoAndStop(1);
this.kirupatxt = “loading (” + myText + “%)”;

}

}[/SIZE]

How do I get the preloader to work with Flash Video (.flv)?

Thanks

Got it - http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_19439

The mime types on IIS.