There is an error which is Error: Error #2037: Functions called in incorrect sequence, or earlier call was unsuccessful. I think maybe security box or something
----- Original Message ---- From: Dale Fraser <[EMAIL PROTECTED]> To: flexcoders@yahoogroups.com Sent: Monday, March 3, 2008 11:32:36 PM Subject: [flexcoders] File Download Not Working Why doesn’t this work The app runs, get a download prompt, click save. No error. But no file. And the completeHandler never fires, never see the trace. Must be missing something obvious. <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe. com/2006/ mxml" layout="absolute"> <mx:Script> <![CDATA[ import flash.net.FileRefer ence; private function doIt():void { var request:URLRequest = new URLRequest("http://learncf. com/img/btnTutor ial.png"); var fileRef:FileReferen ce = new FileReference( ); fileRef.addEventLis tener(Event. COMPLETE, completeHandler) ; fileRef.download( request); } private function completeHandler( ):void { trace('complete'); } ]]> </mx:Script> <mx:Button x="10" y="10" label="Button" click="doIt();" width="166" height="126"/> </mx:Application> Regards Dale Fraser http://learncf. com ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ