0 Replies Latest reply on Jan 2, 2012 5:34 AM by PMarcoen

    Security restriction: how to save the results of a database query to a local file?

    PMarcoen

      I'm having some trouble getting around a security restriction of flex.

       

      Saving a file is apparently an action that can only be invoked upon user interaction.

       

      The problem is that after my user clicks on the save button, I need to perform a database query to get the data for the file I want to save.

       

      Because Flex works asynchronous, I have to make the database call and then catch the ResultEvent in a different function.

      In that function, I no longer have the user's mouseclick event. How am I then supposed to save this file?