I'm stumped - cross domain (type) issue

Posted on 2012-09-21
Last Modified: 2012-10-02
we've setup a test server to try and simulate a problem

assume 3 files
file a i have no control over and it sits in

it loads file b - file b loads file c
but i pass file c to file b via an absolute path - but instead of using i'm using the domainname  - so let's say mydomain

(i'm simulating an environment here - so dont' want to change this)

what would be the cross domain scenario here.
assume for testing i'm puttin allow domain * on everything

it's the same machine

my file refuses to load.
blank friday moment.
Question by:blue-genie
    LVL 12

    Expert Comment

    The domain name needs to be exactly as it is in the crossdomain file.  True, localhost or mydomain may well resolve to, but Flash doesn't care - it must be the same, and the same for any sub-domains.
    LVL 39

    Author Comment

    Hey proactivation - as mentioned, currrently all my allowDomains are set to wildcard * - I'm trying to find a solution to get flash to not care if the file says localhost or mydomain or
    LVL 39

    Accepted Solution

    what i've opted to is the follows:

    domainA - which I have no control over will either use a machine name or IP to load a file on domainB

    swf in domainA loads one of my files in domainB, my file then loads other files, connects to webservices, sockets etc - i've added an extra parameter in my config file, to pull the currently location, strip that out and set that as my "domain" - I make sure I load all my files into my security domain - and the workaround - faking the actual calling domain - works.

    I have no doubt this is not the right way to go about it - but for the sake of this particular project - i'm happy with the result - and since there was nothing else forthcoming in ideas, i'm going to close this.

    LVL 39

    Author Closing Comment

    I wasn't getting any useful responses, so I created a work around which I've detailed.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
    There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
    The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
    The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now