FileReference download cross-domain

I tried to make download file across domain but it not working on Flash Player 9. Must I specify server-side policy files for permitting access to data? Have you experience with this? Strange for me is that the same code is working if I start the SWF localy. If I upload the SWF on the server, than the same code in not working. Thank you for tips or help