Loader.loadBytes crash!

Anybody know how to progressively load and display a SWF file using the flash.net.URLStream and flash.display.Loader classes?

if I write the bytes to the Loader class while the SWF is loading, it crashes flash.


stream.readBytes(bytes, bytes.[COLOR=#000087]length[/COLOR]);
[COLOR=#000087]if[/COLOR](bytes.[COLOR=#000087]length[/COLOR] > 0) {
        loader.loadBytes(bytes);
}

but if wait until the whole thing is loaded and then write the bytes, then it is Totally OK. Any ideas of how to get the SWF to progressive load using flash.display.Loader?

Thank you.