Hi, check this url http://blog.flexexamples.com/2008/08/25/creating-a-filereference-object-using-mxml-in-flex it has fileReference tag with all the events of the file , try with this example , so that u can know which type of error occuring while downloading.Hope this should help u.
On Sep 23, 3:10 pm, VPN <[EMAIL PROTECTED]> wrote: > I have an issue with the file reference class. I am getting below > runtime error when i try to download an image from the website: > Error: Error #2087: The FileReference.download() file name contains > prohibited characters. > at flash.net::FileReference/download() > at MCDZoom/saveThisImage() > at MCDZoom/handleContextMenu() > > I checked the file name, and the file name seems to be ok. The url is > coming as :http://test-sites.com//MCD/49/9443/EXM_v1_a1_fig003_s.jpg > > All the paths to the FileReference object is relative. Below is the > code. > > file = new FileReference(); > file.addEventListener(Event.COMPLETE,fileSelectHandler); > var new_img:String = _imagePath.split(".jpg")[0]+"_s.jpg" > var urlr:URLRequest = new URLRequest(new_img); > file.download(urlr,new_img); > > What could be wrong? > > Vipin --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/flex_india?hl=en -~----------~----~----~----~------~----~------~--~---

