Strange Hack For Downloading With a FileReferenceOctober 20th, 2009
My file download wasn't working and I sometimes got an I/O Error - 2038. I dug around the internet and found this very strange hack. You have to create a nested function in the same scope as the call to the download() method of the FileReference. It makes no sense to me, but it works! I also found it helpful to declare your FileReference as a class member (with global scope) rather than a local variable inside a function. private function downloadSomeFile():void var thisIsCrazy:Function = function():void{};//CRAZY!!!!!!!! |
![]() RECENT ARTICLES
Stack Error 1023 - My Strange Encounter With Error 1023
Passing Values to a Custom ItemRenderer Using a File Reference to Upload to ASP.net Flex - Create a Dashboard That Allows Drag and Resize Using SharedObjects Flex Checkbox TreeItemRenderer Flex - Dynamically Create Time Segments Flex - The Fastest Way to Transfer Data? MORE... |
