How big is the buffer ByteArray and where are you writing the file? If the write can happen fast enough, no Progress events are fired. From the link you posted:
"In some cases, progress events are not received. For example, when the file being transmitted is very small or the upload or download happens very quickly a progress event might not be dispatched." HTH, -Alex On 12/10/17, 11:04 AM, "scott matheson" <sc...@matheson.it> wrote: >Hi > i have copied this code off the flex site >https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fhelp.adob >e.com%2Fen_US%2FFlashPlatform%2Freference%2Factionscript%2F3%2Fflash%2Fnet >%2FFileReference.html%23event%3Aprogress&data=02%7C01%7Caharui%40adobe.com >%7C5145f08e886e42dd00ef08d54000d165%7Cfa7b1b5a7b34438794aed2c178decee1%7C0 >%7C0%7C636485294617358223&sdata=t0JXnVPLx%2BtytYlHob%2B2kjcAm4VexBH%2FYrls >PTnyOTY%3D&reserved=0 ><https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fhelp.ado >be.com%2Fen_US%2FFlashPlatform%2Freference%2Factionscript%2F3%2Fflash%2Fne >t%2FFileReference.html%23event%3Aprogress&data=02%7C01%7Caharui%40adobe.co >m%7C5145f08e886e42dd00ef08d54000d165%7Cfa7b1b5a7b34438794aed2c178decee1%7C >0%7C0%7C636485294617358223&sdata=t0JXnVPLx%2BtytYlHob%2B2kjcAm4VexBH%2FYrl >sPTnyOTY%3D&reserved=0> > >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); > } >