That will not work, unless you are using AIR.  A file can't originate in 
the SWF, it has to come from a server.  You can create the file in the 
SWF and spool it to a server and back to the client.

Paul

essuark wrote:
> Thanks for the reply Paul. Other than when the swf loads, there is NO 
> server side component like a websevice. It needs to be initiated from 
> the swf with data from with-in the swf....
>
> --- In flexcoders@yahoogroups.com, Paul deCoursey <[EMAIL PROTECTED]> wrote:
>   
>> NavigateToUrl should work.  This is really more of a general Web 
>> Development question though.  The real work would need to be done 
>>     
> on the 
>   
>> server in some sort of web application.  You need to set the header 
>>     
> of 
>   
>> the response to the correct mimetype so that the browser can decide 
>>     
> what 
>   
>> to do with the file.  You can also send headers to will instruct 
>>     
> what to 
>   
>> use for a filename.  I can't really provide much more guidance 
>>     
> without 
>   
>> more details on what you are using server side, and that would 
>>     
> really 
>   
>> bring us out of scope for this list.
>>
>> Paul
>>
>> essuark wrote:
>>     
>>> Hello all,
>>>  
>>>   I have some simple data that I wish to export to Excel from my 
>>>       
> flex 
>   
>>> application. Basically I want to click a button and have 
>>>       
> the 'Save As' 
>   
>>> dialog on the browser appear, so the data is dynamic. This needs 
>>>       
> to be 
>   
>>> contained in the swf and not access a file somewhere on a server, 
>>>       
> and 
>   
>>> since there isn't file, I am not sure if can use NavigatetoURL. 
>>>       
> In 
>   
>>> short I wish to send or stream xml data to; I guess, another 
>>>       
> browser. 
>   
>>> So again, any ideas on how to send simple xml data, like 
>>> <Msg>Hello</Msg> and have the browser's save as dialog show up so 
>>>       
> the 
>   
>>> user can save it on their harddrive?
>>>
>>> Thanks
>>> Ralph
>>>
>>>
>>>
>>>       
>
>
>
>   

Reply via email to