URGENT! Cross domain SWF controll problem

Hi!
I need to deliver my stuff in a few hours so I realy realy
need help!!!
I have one SWF on a domain, it loads different SWF animation
files stored on another domain.
They load fine, but Im not allowd to controll the SWF
animations useing gotoAndPlay etc.
It works when I run everything local on my machine or if I
run the main SWF localy and
load the animations from a domain online. I have checked so
all frames are loaded and Im using
"System.security.allowDomain" but I still cant controll them.
Please if anyone knows how to solve this. Please let me know!
/Philip

Thanks for the reply, i have tried the Crossplatform file,
but the problem still remains. The problem does not seem to be
actually loading the SWF, They load but I cant controll them.
As soon as the animation is loaded it will wailt for a short
while before it is ment to start playing. But
myLoadedSWF.gotoAndPlay(2); does not work. But it does if I run the
main SWF localy and have only the animations online. I can get
information about the SWF though, such as how many frames it has
got etc.

Similar Messages

  • Cross-domain SWF loading doesn't work

    I've been trying to get cross-domain SWF loading to work for
    a while now, but even though it works from the Flash IDE the loaded
    SWF is blank when I upload it to a webserver somewhere. And yes,
    both servers have a crossdomain.xml file in their root folder, and
    I've also used System.security.allowDomain("*"). I've published
    both using the 'using network' option in the publish dialog.
    Could someone please help me with this, as I can't seem to
    find why it isn't loading. I've also read the entire PDF about
    Flash 9 security, but I couldn't find anything about external SWF
    loading except for the crossdomain files.

    A little more color on this: If there are 2 or more messages in the active mailbox (and others in a different mailbox), the expand/collapse function works for the messages in the active mailbox. In the message column on the right, all the messages in the conversation are shown (both mailboxes). Only those messages in the active box are shown in the list column when the conversation is expanded. I can kind of see how this might be intentional, but it's strange to see lots of messages in the conversation in the right column, but only one or a few corresponding items in the messge list.

  • Endeca cross domain problem

    We are currently using Endeca Commerce 3.1 on a distributed environment with MDEX installed on one server and Experience Manager on another but both on the same domain.
    When we use the RecordSpotlight cartridge in Experience Manager the record selection radio buttons are greyed out.
    We followed the instructions under “Setting up a cross-domain policy file” under Appendix C in the “Tools and Framework Installation Guide” and added the following crossdomain.xml file under <MDEX_install_dir>/6.4.0/conf/dtd/xform but still the problem persists. We have also set the value of permitted-cross-domain-policies in the crossdomain.xml file to “none”, “master-only” and “all”. None of them solved the problem.
    <?xml version="1.0"?>
    <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
    <cross-domain-policy>
    <site-control permitted-cross-domain-policies="all"/>
    <allow-access-from domain="*.mydomain.com" />
    <allow-access-from domain="*.mydomain.ca" />
    <allow-http-request-headers-from domain="*" headers="SOAPAction"/>
    </cross-domain-policy>
    Could you please advise on how to enable those record selection radio buttons?
    Sincerely,
    Alex Luc

    It looks like I've solved it. The parent domain was
    sub-domain and I was leaving off the "
    http://" for the allowDomain argument. Once I
    added it, the swfs work.

  • Problem with socket cross domain

    Hi guys,
    This is my cross domain file:
    <?xml version="1.0"?>
    <!DOCTYPE cross-domain-policy SYSTEM "/xml/dtds/cross-domain-policy.dtd">
    <!-- Policy file for xmlsocket://socks.example.com -->
    <cross-domain-policy>
       <site-control permitted-cross-domain-policies="*"/>
       <allow-access-from domain="localhost" to-ports="80" />
    </cross-domain-policy>
    I am placing it in my server.
    From flex i am running this:
    Security.loadPolicyFile("my server address");
    And yet I am getting this event:
    SecurityErrorEvent type="securityError" bubbles=false cancelable=false eventPhase=2 text="Error #2048"
    What can I do?

    Hello ILikeMyScreenNameNdCoffee,
    I had the same problem with XMLSocket and I used a policy server that runs
    on the remote server on port 843 and from Flex I load file before connecting
    the xmlsocket Security.loadPolicyFile("my server address:843"). If you want
    I can upload a version of my policy server or you can use the server policy
    from here
    http://www.broculos.net/tutorials/how_to_make_a_multi_client_flash_java_server/20080320/en
    Also you can read here more about file policy:
    http://www.adobe.com/devnet/flashplayer/articles/fplayer9_security_04.html.
    On Thu, Aug 19, 2010 at 5:40 PM, ILikeMyScreenNameNdCoffee <[email protected]

  • FABridge cross-domain problem?

    I try to html and FABridge.js and swf from other domain site.
    Like below:
    http://192.168.1.1/test,html :
    <script src="
    http://192.168.1.32/FABridge.js"></script>
    <EMBED SRC="
    http://192.168.1.32/Test.swf"
    Downloading has succeed.
    However, cannot get object in javascript program.
    var root = FABridge.flash.root();
    I recived error like this
    FABridge.flash has no properties
    Is it something like a cross-domain problem?
    thanks.

    It looks like I've solved it. The parent domain was
    sub-domain and I was leaving off the "
    http://" for the allowDomain argument. Once I
    added it, the swfs work.

  • Cross domain error while displaying .SWF files in  portal

    Hi Experts,
    i am working on EP ,
    i am trying to display a .swf file in a iview but that file is  giving an error as
    Add a cross domain policy file to the external data web server
    this swf file is retriving data from BI system.
    Please suggest !!
    i got a solution of putting a crossdoaim.xml file in root directory but thats not possible

    I think two urls will work for you:
    Xcelsius SWF with QaaWS through SSL: Cannot access external data
    http://livedocs.adobe.com/flex/3/html/help.html?content=security2_04.html

  • Problem with Cross-domain SSO, NTLM and ITS to R/3

    Hello,
    We are using EP 6.0.13.0 on a Windows environment.  We have an ITS running WebGUI/ESS/MSS in another domain and that is the same domain where the R/3 and BI systems reside.  We have configured NTLM authentication using IIS web server 6.0 and the IISProxy 1.6.2.  We have configured SSO with the backends using the same ID as in the MS-ADS.  Almost everything works fine.
    The problem is that when we use the NTLM logon VIA the IIS to the portal, and then navigate to a WebGUI service transaction we are prompted for login.  When we refresh the portal screen and try again - it works.
    We have configured the mdc.hosts and are using the sendSAPSSO2Cookie.asp to generate the cross-domain logon ticket.
    I have read that ITS may require the PAS be set up but I thought that was only used when you are going directly to the ITS (leveraging the NTLM authentication) - not when you are going through the portal.
    Does anyone have some experience using ALL of the SSO features (i.e. SSO, cross-domain support, ITS, windows integrated authentication)?
    We have though about the relax option for the domain but it does not apply as our domains are:
    SERVER1.domain1.com and SERVER2.domain2.com
    ... so relaxing would not help unless we relaxed to the ".COM" which is unreasonable.
    My regards,
    Judson Maizels

    Hi JUDSON
    well i'll give one easy solution
    make a alias under host file reside in winnt\system32\drivers\etc directory which has same domain name
    i.e
    SERVER1.domain1.com   server1.mydomain.com
    SERVER2.domain2.com   server2.mydomain.com
    it's works in my schenario we have a same system landscape
    as you
    regards,
    kaushal

  • Problem authenticating user in Active Directory cross domain

    Hi,
    We have two different AD servers serving our London and Tokyo networks. My application runs in London network but used by both London and Tokyo users.
    The two ADs have domain trust setup between them. I have groups defined in London AD to which users from both the London and Tokyo ADs are assigned.
    'm trying to connect to London AD using the "users credentials" and retrieve the groups they are assigned to.
    I can connect to the London AD using any of the London user and I could retrieve the groups. But when I use a Tokyo user credentials to connect using the London AD server 'm getting Security exception with a code indicating "User Not Found".
    The code I use which is very basic is given below . The code below run as such gives me the following error,
    [LDAP: error code 49 - 80090308: LdapErr: DSID-0C090334, comment: AcceptSecurityContext error, data 525, vece.
    If I change in the code below, Provider URL to Tokyo AD Server URL then it works but I can't use that due to security restrictions. As per the Windows Team the domain trust should allow me to connect/bind to the London AD Server with the Tokyo credentials.
    Hashtable<String, String> env = new Hashtable<String, String>();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");
    env.put(Context.PROVIDER_URL, "london ldap server url"); 
    env.put(Context.SECURITY_AUTHENTICATION, "simple");
    env.put(Context.REFERRAL, "follow");
    env.put(Context.SECURITY_PRINCIPAL, "[email protected]"); 
    env.put(Context.SECURITY_CREDENTIALS, "password"); 
    env.put(LdapContext.CONTROL_FACTORIES, "com.sun.jndi.ldap.ControlFactory");
    ctx = new InitialLdapContext(env, null);
    I would like to know how to authenticate a user in a cross domain Active Directory environment. I read in one of the blogs that the "simple bind" will not work for cross domain user authentication. Unfortunately the blogger didn't mention what would work :( . Any help is much appreciated.
    Please bear with me if my query is a naive one and point me in the right direction.
    Thanks
    Jothi                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi Praveen,
    to avoid losing data when user objects are moved to new locations in the LDAP server, it is possible to configure the User Management Engine to use the value of a specific unique attribute as part of the unique ID instead of the distinguished name.
    For this, you have to change the following UME properties:
    For user objects: ume.ldap.unique_user_attribute=<attributename>
    For account objects: ume.ldap.unique_uacc_attribute=<attributename>
    For group objects: ume.ldap.unique_grup_attribute=<attributename>
    Be aware that the attribute (i.e. cn or uid) must be unique in the configured user/group path.
    Please read SAPNote 777640 for more information regarding this problem and the way to change the UME properties.
    Best regards,
    Robert

  • Cross Domain solution: Could not get bytesloaded swf external from other domain

    hello: good evening
    I leave my problem here:
    I am make a measurer of internet speed that consists one
    preloader (swf1.swf in www.dominio1.com) who loads a swf (swf2.swf
    in www.dominio2.com)
    The file swf2.swf visualizes perfect in swf1.swf without
    problems although on swf1.swf it does not take the variables from
    swf2.swf to show the rate of transference, total remaining time, kb
    loaded and kb total.
    If I use crossdomain.xml on the mother directory of the site,
    or both sites, the problem it persists.
    I need that they indicate to me like making solve this
    disadvantage
    if somebody knows where I can obtain a gratuitous measurer of
    speed, please, to indicate it:-o
    Thanks you very much for all
    any questions???

    no body answer?

  • Error 2170 in Cross Domain Policy deployed in Enterprise Portal

    Hi All,
    We are facing an Error # 2170 for the Cross Domain Policy in Enterprise Portal.
    We developed the dashboard using 2 web service connections (using ECC Remote Enabled Functon Module). The Web services were made Public so that they can be accessed from any network. We developed the dashboard using the public enabled webservices and exported to the SWF file which is working fine.
    But when we place the dashboard SWF file in the Enterprise portal it gives the error " Cross Domain Policy Error #2170" .
    We Placed the Cross domain Policy file in ECC Server in the root directory and placed the same in Enterprise portal C drive.
    But still it shows the same error when we preview the dashboard in Enterprise Portal.
    The Cross Domain Policy File that we are using is as follows:
    -<cross-domain-policy> <site-control permitted-cross-domain-policies="all"/>
                <allow-access-from secure="false" to-ports="" domain=""/>
               <allow-http-request-headers-from secure="false" domain="" headers=""/>
               <allow-https-request-headers-from secure="false" domain="" headers=""/>
    </cross-domain-policy>
    Please let us know if the cross doamin file is correctly coded and suggest us with suitable solutions for this problem. Also let us know if there is some alternative solution to this issue.
    Thanks,
    Malla Reddy D

    Hello Malla,
    Maybe SAP Note 1240810 helps... Anyway, I would say that if your issue is with the direct SAP NW BI connection, through BICS, the only file which is relevant is bicsremotecrossdomain.xml, which should be located on your server HTTP root.
    Another check you can perform is if you have both portal certificate entries as per SAP Note 1508663.
    Kind Regards,
    Marcio

  • Load XML file from addon domain without cross-domain Policy file

    Hello.
    Assuming that there are two addon domains on the same server: /public_html/domain1.com       and      /public_html/domain2.com
    I try to load XML file from domain2.com into domain1.com without using cross-domain policy file (since it doesn’t work on xml files in my case).
    So the idea is to use php file in order to load XML and read it back to flash.
    I’ve found an interesting scripts that seems to do the job but unfortunately I can't get it to work. In my opinion there is somewhere problem with AS3 part. Please take a look.
    Here are the AS3/PHP scripts:
    AS3 (.swf in www.domain1.com):
    // location of the xml that you would like to load, full http address
    var xmlLoc:String = "http://www.domain2.com/MyFile.xml";
    // location of the php xml grabber file, in relation to the .swf
    var phpLoc:String = "loadXML.php";
    var xml:XML;
    var loader:URLLoader = new URLLoader();
    var request:URLRequest = new URLRequest(phpLoc+"?location="+escape(xmlLoc) );
    loader.addEventListener(Event.COMPLETE, onXMLLoaded);
    loader.addEventListener(IOErrorEvent.IO_ERROR, onIOErrorHandler);
    loader.load(request);
    function onIOErrorHandler(e:IOErrorEvent):void {
        trace("There was an error with the xml file "+e);
    function onXMLLoaded(e:Event):void {
        trace("the rss feed has been loaded");
        xml = new XML(loader.data);
        // set to string, since it is passed back from php as an object
        xml = XML(xml.toString());
        xml_txt.text = xml;
    PHP (loadXML.php in www.domain1.com):
    <?php
    header("Content-type: text/xml");
    $location = "";
    if(isset($_GET["location"])) {
        $location = $_GET["location"];
        $location = urldecode($location);
    $xml_string = getData($location);
    // pass the url encoded vars back to Flash
    echo $xml_string;
    //cURLs a URL and returns it
    function getData($query) {
        // create curl resource
        $ch = curl_init();
        // cURL url
        curl_setopt($ch, CURLOPT_URL, $query);
        //Set some necessary params for using CURL
        curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
       //Execute the curl function, and decode the returned JSON data
        $result = curl_exec($ch);
        return $result;
        // close curl resource to free up system resources
        curl_close($ch);
    ?>

    I think you might be right about permissions/settings on the server for php. Unfortunately I'm not allowed to adjust them.
    So I wrote my own script - this time I used file path instead of http address of the XML file.  It works fine in my case.
    Here it is:
    XML file on domain2.com:
    <?xml version="1.0" encoding="UTF-8"?>
    <gallery>
        <image imagePath="galleries/gallery_1/images/1.jpg" thumbPath="galleries/gallery_1/thumbs/1.jpg" file_name= "1"> </image>
        <image imagePath="galleries/gallery_1/images/2.jpg" thumbPath="galleries/gallery_1/thumbs/2.jpg" file_name= "2"> </image>
        <image imagePath="galleries/gallery_1/images/3.jpg" thumbPath="galleries/gallery_1/thumbs/3.jpg" file_name= "3"> </image>
    </gallery>
    swf  on domain1.com:
    var imagesXML:XML;
    var variables:URLVariables = new URLVariables();
    var varURL:URLRequest = new URLRequest("MyPHPfile.php");
    varURL.method = URLRequestMethod.POST;
    varURL.data = variables;
    var MyLoader:URLLoader = new URLLoader;
    MyLoader.dataFormat =URLLoaderDataFormat.VARIABLES;
    MyLoader.addEventListener(Event.COMPLETE, XMLDone);
    MyLoader.load(varURL);
    function XMLDone(event:Event):void {
        var imported_XML:Object = event.target.data.imported_XML;
        imagesXML = new XML(imported_XML);
       MyTextfield_1.text = imagesXML;
       MyTextfield_2.text = imagesXML.image[0].attribute("thumbPath");  // sample reference to attribute "thumbPath" of the first element
    php file on domain1.com:
    <?php
    $xml_file = simplexml_load_file('../../domain2.com/galleries/gallery_1/MyXMLfile.xml');  // directory to XML file on the same server
    $imported_XML = $xml_file->asXML();
    print "imported_XML=" . $imported_XML;
    ?>
    Regards
    PS: for those who read the above discussion: the first and the second script work but you must test which one is better in your situation. The first script will also work between two domains on different servers. No cross domain policy file needed.

  • Cross Domain XML not working

    Greetings,
    I recently obtained two different domains that point to a subdirectory of another domain server. The swf file I created does not show up when I use the domains that are pointing to the subdirectory of the original domain.
    I placed an xml file into the root directory that contains the following code:
    <?xml version="1.0"?>
    <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
    <cross-domain-policy>
        <allow-access-from domain="*.newdomainname1.com"/>
        <allow-access-from domain="*.newdomainame2.com"/>
    </cross-domain-policy>
    Nothing shows up. Is there something else I need to do make this work? I created the swf file using CS3 - Action Script 2. I tried searching everywhere to see if I'm missing a step, but cannot find anything. Any help would be greatly appreciated.

    I'm still not entirely clear what the problem is.
    Those links to the other domain show 404 errors, which is related to how things are set up on your hosting server for those domains, and nothing to do with flash.
    Are you trying to get the swf at http://www.searecovery.com/ to load data from the other domains? (I can't see it trying to do that, so perhaps not)
    If so you need to add *.searecovery.com to the crossdomain files at the other domains.
    Crossdomain files give flash content (swfs) hosted at one domain access to load data (or grant access to the data of loaded assets) from another domain.
    So you need crossdomain permission if you want a swf hosted at www.danfoss-searecovery.com to load xml data from www.danfosssearecovery.com for example, or to get at the bitmapdata of jpgs loaded from www.danfosssearecovery.com.
    If you just want to host the swf at the other domain, and if it's not loading data from external domains, then you pretty much just need to move copies of the html and swf there along with any external assets it loads (so long as you have used relative urls for loaded assets from within the swf) . If that's what you're trying to do then the issue here is likely to be simply how your hosting environment is set up for the other domains.

  • There appears to be a persistent connection limit of 2 for cross domain requests

    I am building a service that allows anybody to add real-time push updates to their website or web application. To do this I'm using the Access-Control-Allow-Origin header response from a cloud hosted server.
    When establishing a connection we create one persistently connected HTTP connection and use a second connection to send requests (subscriptions/commands).
    The problem I'm seeing looks very similar to the old 2 socket to a server connection limit (related to about:config "network.http.max-persistent-connections-per-server").
    Is there a limitation on the number of persistent cross domain connections that can be established from a single Firefox process? If so, where is the configuration options to override this?
    This problem can be easily duplicated by going to the following page in two tabs within the same Firefox process:
    http://kwwika.com/Standalone/Demos/WorldCup2010/
    You will notice that one page connects and starts to receive updates. The second will not connect until you close the first tab/page.
    I'd like to be able to provide feedback to the users of Kwwika about this problem so any information you can provide me with would be very much appreciated.
    == URL of affected sites ==
    http://kwwika.com/Standalone/Demos/WorldCup2010/
    == User Agent ==
    Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.70 Safari/533.4

    [bump]

  • Cross-Domain Scripting in OC4J

    Hi,
    I was wondering if anyone could help us find a way to enable cross-domain requests on our OC4J container.
    We're working on version 10.13.40!
    We would like to expose our web services to other applications inside our organisation (which operate from another url). We would also like to expose them to localhost since we are using them to test our application on our local machines.
    If anyone has any more information on this topic, please let us know!
    Thanks in advance!
    Maarten

    I didn't exactly get you
    Let me explain my problem. I am trying to access a BI Publisher's web service from outside the domain. My BI Publisher is hosted on OC4J. When I call this web service from inside the domain I get the expected response.
    The header of the response does not have Access-Control-Allow-Origin parameter in it. When I run the same code from outside, the status of my XMLHttpRequest object (my browser is mozilla) is set to 0 which means that the server is rejecting my call and I assume this is because this call is made from a place outside the domain.
    I have learned that Access-Control-Allow-Origin parameter controls the script requests which come from a place outside the domain
    I want to know a mechanism to set Access-Control-Allow-Origin parameter in OC4J. I searched the documentation and this parameter is not mentioned. Is the name of this parameter different in OC4J. If so what is it and where is it.
    Thanking you in anticipation of your help
    Regards,
    Vishal

  • How and when to load cross-domain.xml for web services.

    I'm accessing some 3rd party web services and so I need them to have a cross-domain.xml file, which they have done.
    In order to access their web services, am I correct that I need to load the cross-domain.xml file they put on their web server, and if so, is my code to do so below correct, which I put in my creationComplete handler function?
    Note, of course the IP address in my code is not 0.0.0.0.
    Do I need all these lines, and am I doing this correctly?
    Currently I am getting a SecurityErrorEvent.
    Security.allowDomain("0.0.0.0");
    Security.loadPolicyFile("http://0.0.0.0/crossdomain.xml");
    var request:URLRequest = new URLRequest("http://0.0.0.0/crossdomain.xml");
    var loader:URLLoader = new URLLoader();
    loader.addEventListener(Event.COMPLETE, policyLoaded);
    loader.addEventListener(IOErrorEvent.IO_ERROR, policyIOError);
    loader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, policySecurityError);
    loader.load(request);

    Okay, I found that when I put the crossdomain.xml file at the root of my web site file area my hosting company provides, I do not specifically need to load the crossdomain.xml file.
    But if I want finer control over who has access to what, and I put the crossdomain.xml file in the same directory as my Flex app SWF file, what lines of the following code (or additional lines I don't know about) should I put in my app creationComplete handler function to load the crossdomain.xml file?
    Note, of course the IP address in my code is not 0.0.0.0.
    Do I need all these lines, and am I doing this correctly?
    Security.allowDomain("0.0.0.0");
    Security.loadPolicyFile("http://0.0.0.0/myAppFolder/crossdomain.xml");
    var request:URLRequest = new URLRequest("http://0.0.0.0/myAppFolder/crossdomain.xml");
    var loader:URLLoader = new URLLoader();
    loader.addEventListener(Event.COMPLETE, policyLoaded);
    loader.addEventListener(IOErrorEvent.IO_ERROR, policyIOError);
    loader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, policySecurityError);
    loader.load(request);

Maybe you are looking for