Maybe it should be:var urlr:URLRequest = new URLRequest( http://test-sites.com//MCD/49/9443/EXM_v1_a1_fig003_s.jpg);
On Tue, Sep 23, 2008 at 6: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 -~----------~----~----~----~------~----~------~--~---

