Mar 4th, 2009, 03:18 AM
Howto load Properties and access Network ?
i've asked that already in the Prana forum, but never got an answer.
Here is my situation/problem: I'm building a Flex client that has to
communicate with a Rails backend.
Since there are different environments (development, staging, production)
i load the env. specific data on startup with the Properties class. For getting to work this, i have to set the Flex compiler flag 'use-network=false'.
But with that setting i guess i'm not able to reach the Rails backend
with HTTPService calls (for that 'use-network=true' is necessary).
Is there a solution that both (load Properties and access web URL's) is
working ? I'm using Flex 3.
Thank you very much.
Mar 4th, 2009, 07:58 AM
.. ok i guess i have found an answer:
- don't set any compiler params (like '-use-network=false')
- with that everything works fine with a deployed version of your app
which you call with a valid url (i.e. loading a .properties file and having
- on your local machine go to the Settings Manager of your Flash Player,
change to tab 'Global Security Settings', select the radio button
'Always allow' and finally choose the 'bin' directory, where the swf file(s)
of your current developing project will be compiled into.
- with that you don't get the SecurityError #2148 anymore locally.
This is a good URL:
If there are other/better solutions, please let me know.
Tags for this Thread