You should provide full path to the file. eg: http://localhost/diego.gif.
You cannot load files from the file system in this way.(unless you are
using FP10)

On Sep 16, 3:16 pm, flex <[EMAIL PROTECTED]> wrote:
> hi ,
>  i have 1 gif file stored on server and wants to download it on user
> pc,
> i have stored flex swf and html on same folder on server
> the code is
>
>  import flash.net.FileReference;
>             private var fileRef:FileReference;
>             private var urlReq:URLRequest;
>
>   private function download():void{
>                                var request:URLRequest = new
> URLRequest("diego.gif");
>                                 var fileRef:FileReference = new 
> FileReference();
>                                 fileRef.download(request);
>
>             }
>
> <mx:LinkButton label="download" click="download();" />
>
> but it not working , and not showing any error also,
> can anyone suggest wat is remain in this code
> thx

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to