Announcement Announcement Module
Collapse
No announcement yet.
Howto load Properties and access Network ? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Howto load Properties and access Network ?

    Hi there,

    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.
    Best regards
    valley

  • #2
    .. 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
    network access)
    - 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:
    http://www.macromedia.com/support/do...4a.html#119065

    If there are other/better solutions, please let me know.

    Regards
    valley

    Comment

    Working...
    X