Hi
i have copied this code off the flex site
https://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/FileReference.html#event:progress
<https://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/FileReference.html#event:progress>
but the progress does not seem to fire,
private function saveReport():void {
cursorManager.removeBusyCursor();
var buffer:ByteArray = myPDF.save(Method.LOCAL);
var file:FileReference = new FileReference();
configureListeners(file);
file.save(buffer, "Overview Report.pdf");
}
private function configureListeners(dispatcher:IEventDispatcher):void {
dispatcher.addEventListener(ProgressEvent.PROGRESS, progressHandler);
}
protected function progressHandler(event:ProgressEvent):void
{
var file:FileReference = FileReference(event.target);
trace("progressHandler name=" + file.name + " bytesLoaded=" +
event.bytesLoaded + " bytesTotal=" + event.bytesTotal);
}