Your download needs to be executed within the function that
processes/handles user input... even calling another function will result in
the same error. Your only other alternative is to use navigateToUrl... or a
servlet call that sends back a stream.

I¹m guessing that you have a compelling use case or that auto-download is a
requirement ­ typically this kind of behavior is frowned upon by the IT
peeps. Would copying the data to the clipboard be an option?

Cheers,

Rick Winscot



On 7/31/09 5:28 PM, "ilikeflex" <[email protected]> wrote:

>  
>  
>  
> 
> Hi
> 
> I have scenario in which the user clicks the
> 
> 1.Click the button.
> 2.Make a call to server using Remote Object
> 3.Show the popup to save the data in file.
> 
> But i came through Flash Player 10 Security Model which says that
> 
> "Error #2176: Certain actions, such as those that display a pop-up window, may
> only be invoked upon user interaction, for example by a mouse click or button
> press."
> 
> Does it mean that the user has to view the data in the datagrid and then click
> save button (User Interaction according to Flash Player 10 Security Model) to
> save the data in the file.
> 
> Is there way user can save the data directly after server response.
> 
> Any pointer is highly appreciated
> 
> Thanks
> ilikeflex
> 
>   
>     
> 
>> 

Reply via email to