Important: How to ready your application for the internet

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

Blackout
Posts: 9
Joined: 01 Oct 2011, 09:42

Important: How to ready your application for the internet

Postby Blackout » 04 Nov 2011, 20:01

Just thought I should share this for people who don't know how.

  • Make sure you allow the correct domains using the System object
    Example in AS2:

    Code: Select all

    System.security.allowDomain("*");

    Example in AS3:

    Code: Select all

    import flash.system.Security;
    Security.allowDomain("*");
  • Install a crossdomain.xml file (for slightly older versions of Flash)

    Code: Select all

    <cross-domain-policy>
    <allow-access-from domain="*.example.com"/>
    <allow-access-from domain="127.0.0.1"/>
    </cross-domain-policy>

    Place this under crossdomain.xml in the following locations on your web-server:
    The location of the SWFs
    The location of the loading page
  • Checklist
    [Y/N] Have I added the security line in the FLA?
    [Y/N] Have I added a crossdomain.xml file?
    [Y/N] If the flash document loads any external SWFs, do they point to a [Y/N] relative directory on the same domain?
    [Y/N] If my flash document uses any loadVars, does it load from a relative directory on the same domain?
Blackout
Taking over for Flappi282 here :D

Return to “SmartFoxServer 1.x Discussions and Help”

Who is online

Users browsing this forum: Google [Bot] and 56 guests