SendandLoad() vs https

hi
I have developed an gaming web application, I load a swf in
jsp page which makes a xml.sendandLoad() request after loading.
i use struts and jboss , from the swf using sendandLoad() a
request is make to server and in response it gets an xml
its working perfectly when its HTTP but when it comes to
HTTPS the request is hitting the server but the response is not
coming the SWF is going on wainting for the response.
my server side code i generating an xml and setting it in the
printWriter of the response.
I even tried crossdomain.xml for the security policy it is
not working .
iam stuck up please help me to resolve this issue.

Here's something that might help you:
http://www.northcode.com/forums/showthread.php?s=&threadid=3803
Dan Mode
--> Adobe Community Expert
*Flash Helps*
http://www.smithmediafusion.com/blog/?cat=11
*THE online Radio*
http://www.tornadostream.com
<--check this
*Must Read*
http://www.smithmediafusion.com/blog
"arovinth" <[email protected]> wrote in
message
news:erhrg0$fm6$[email protected]..
> hi
> I have developed an gaming web application, I load a swf
in jsp page which
> makes a xml.sendandLoad() request after loading.
>
> i use struts and jboss , from the swf using
sendandLoad() a request is
> make to
> server and in response it gets an xml
>
> its working perfectly when its HTTP but when it comes to
HTTPS the request
> is
> hitting the server but the response is not coming the
SWF is going on
> wainting
> for the response.
>
> my server side code i generating an xml and setting it
in the printWriter
> of
> the response.
>
> I even tried crossdomain.xml for the security policy it
is not working .
>
> iam stuck up please help me to resolve this issue.
>
>
>

Similar Messages

  • Sendandload with https

    my domain is www.mydomain.com.
    from this domain, i'm calling the function sendandload to
    "https://www.otherdomain.com" but doesn't work.
    any ideas, Im fighting with this problem many days ago
    Thanks

    Search for "Understandin Security" in the Help files and/or
    use the following link to get a better idea on the security sandbox
    you are using.
    http://www.adobe.com/devnet/flashplayer/articles/flash_player_8_security.pdf
    Tim

  • Xml sendandLoad vs https

    hi
    I have developed an gaming web application, I load a swf in
    jsp page which makes a xml.sendandLoad() request after loading.
    i use struts and jboss , from the swf using sendandLoad() a
    request is make to server and in response it gets an xml
    its working perfectly when its HTTP but when it comes to
    HTTPS the request is hitting the server but the response is not
    coming the SWF is going on wainting for the response.
    my server side code i generating an xml and setting it in the
    printWriter of the response.
    I even tried crossdomain.xml for the security policy it is
    not working .
    iam stuck up please help me to resolve this issue.

    Here's something that might help you:
    http://www.northcode.com/forums/showthread.php?s=&threadid=3803
    Dan Mode
    --> Adobe Community Expert
    *Flash Helps*
    http://www.smithmediafusion.com/blog/?cat=11
    *THE online Radio*
    http://www.tornadostream.com
    <--check this
    *Must Read*
    http://www.smithmediafusion.com/blog
    "arovinth" <[email protected]> wrote in
    message
    news:erhrg0$fm6$[email protected]..
    > hi
    > I have developed an gaming web application, I load a swf
    in jsp page which
    > makes a xml.sendandLoad() request after loading.
    >
    > i use struts and jboss , from the swf using
    sendandLoad() a request is
    > make to
    > server and in response it gets an xml
    >
    > its working perfectly when its HTTP but when it comes to
    HTTPS the request
    > is
    > hitting the server but the response is not coming the
    SWF is going on
    > wainting
    > for the response.
    >
    > my server side code i generating an xml and setting it
    in the printWriter
    > of
    > the response.
    >
    > I even tried crossdomain.xml for the security policy it
    is not working .
    >
    > iam stuck up please help me to resolve this issue.
    >
    >
    >

  • SendAndLoad with accented url

    Hi all,
    I have a little flash application(cs4) to read xml files and to display the contents. xml files are being read using LoadVars::sendAndLoad() over http. It works fine unless I have an accented characater in the url. For example:
    http://localhost/rss/news.xml  - works fine where as
    http://localhost/rss/News_português.xml won't work.
    Anybody ever faced this issue ? Any idea how to get around the problem ?
    I appreciate your help.
    Thanks
    Faisal

    Thanks, I tried URLLoader like you have advised, I am getting the following error messages:
    1- The class or interface 'flash.net.URLRequest' could not be loaded
    2- The class or interface 'flash.net.URLLoader' could not be loaded
    I am using the first example in this url:
    http://help.adobe.com/en_US/OSMF/1.0/AS3LR/flash/net/URLLoader.html
    import flash.display.Sprite;
        import flash.events.Event;
        import flash.net.URLLoader;
        import flash.net.URLRequest;
        import flash.text.TextField;
        import flash.text.TextFieldAutoSize;
        import flash.xml.*;
        import flash.events.IOErrorEvent;
    class includes.clsUserFeeds extends MovieClip
    public function ReadChannel(strFeed, bCheck)
            var request1:URLRequest = new URLRequest(strFeed);
            loader = new URLLoader();
            try
                loader.load(request1);
            catch (error:SecurityError)
                trace("A SecurityError has occurred.");
            loader.addEventListener(IOErrorEvent.IO_ERROR, errorHandler);
            loader.addEventListener(Event.COMPLETE, loaderCompleteHandler);
            xmlTextField.x = 10;
            xmlTextField.y = 10;
            xmlTextField.background = true;
            xmlTextField.autoSize = TextFieldAutoSize.LEFT;
            addChild(xmlTextField);
        private function loaderCompleteHandler(event:Event):void {
                    try {
                        externalXML = new XML(loader.data);
                        readNodes(externalXML);   
                    } catch (e:TypeError) {
                        trace("Could not parse the XML file.");
            private function readNodes(node:XML):void {
                    for each (var element:XML in node.elements())
                        trace(element.attributes()[0] + "\n");
                        readNodes(element);
            private function errorHandler(e:IOErrorEvent):void {
                trace("Had problem loading the XML File.");
    Do I have to do anything specifically in project settings to use actionscript 3 ?

  • Help with HTTP protocol.

    Hi every body.
    How can I get HTML code from some page in the internet with
    GET data and POST data?
    OR
    How can use on the usualy sockets like TelNET? I saw the
    MXLsocket class, this is the same thing?
    TNX all.

    Do not know if it's actual for you.
    request a XML with POST data is a little bit contraignent
    because you send only XML in the data field of the request.
    XML.sendAndLoad. (cf.
    http://livedocs.macromedia.com/flash/8/main/00002879.html
    But if you know how to handle that kind of datas on the
    server side, it seems to be your solution.

  • Need Your Help with FORM Problem

    Hello,
    I have created a Form which sends out the informatin to a PHP
    file. The form works FINE on its own. But when I added the Form to
    my Main FLA file which Contains video and all sort of other stuff
    which I are NOT realed to my Form the I am getting problem. The
    problem is that the Form doesn't work any longer. It loads the php
    file but I have realised that there lots of information which are
    attached to the address which are not really rhe stuff that I would
    like to send to the php file.
    Can anyone tell what I am doing wrong and how I can fix this
    problem, please?
    Thank you in advance for your help.
    Babak

    Babak,
    You will want to use the sendandload function.
    http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context= LiveDocs_Parts&file=00002336.html
    Live
    Docs sendAndLoad
    This will allow you to specify the variables you would like
    to send to your php file and load the variables coming back into a
    specific area aswell.

  • Ssl (https) & sendAndLoad

    hi!
    I'm trying to connect a flash app over ssl, and I can't make
    it work, it works fine without ssl, but with ssl, over https, it
    doesn't work.
    any idea?
    thanks in advance

    I've solved this issue, if anyone needs some help on this,
    message me.
    Ave!

  • Question about the sendAndLoad of LoadVars

    Hi all.
    I have the following code:
    function testSendLoadHttp()
    loaderSendAndLoad.sendAndLoad("
    http://localhost:9999/",
    loaderSendAndLoad,"POST");
    function loaderOnLoad(s)
    if (s)
    Result1.text = this.var2;
    else
    Result1.text = "Error";
    stop ();
    loaderSendAndLoad = new LoadVars();
    loaderSendAndLoad.var1 = "FlashLite";
    testSendLoadHttp();
    loaderSendAndLoad.onLoad = loaderOnLoad;
    sendLoadHttpsButton.onPress = function ()
    testSendLoadHttp();
    I'm receiving the var1 in my Symbian server, but i'm not
    getting the var2 from the server. What can happen that can cause
    the loaderOnLoad to go to the else clause? Because I know that the
    server sends something, but it can be sending in the wrong time or
    in the wrong way. In the server i'm sending like this:
    iSendBuffer.Zero();
    _LIT8(HEADER,"HTTP/1.1 200 OK\r\nContent-type:
    application/x-www-form-urlencoded\r\nContent-length:
    12var2=Symbian\r\n\r\n");
    iSendBuffer.Format(HEADER);
    iSocket.Write(iSendBuffer, iStatus);

    Ok...Finally I solved my problem. Solutions:
    1. Added Connection: close to the header, because the request
    had it
    2. I was sending through the wrong socket in the Symbian side
    3. In my case it doesn't matter if the Content-type is
    text/html or application/x-www-form-urlencoded...it worked with
    both.
    Thanks for your help.

  • SendAndLoad fails in mac .app version - possible security setting problem?

    Hi all,
    I'm having trouble with sendAndLoad working on the .app version of a flash application I made. So far it's only happening on one computer, so it appears to be some sort of security setting.  Here's what's going on:
    I've built a flash application (Flash 9, AS2) that has three versions: an online version, a standalone  .exe version for PC, and a standalone .app version for mac. The user must log in to use the application. Online, this is handled by the portal hosting the flash. In the standalone versions, the user must login through the flash application. Through sendAndLoad, it accesses the same database of user info as the online version. The user just enters username/password, clicks "Submit," and if it finds the combination in the database, it lets the user in. If not, it gives them a message saying they entered the wrong username/password.
    This has tested fine across macs and pcs, but sadly one macbook can't use the .app version. It launches, they put in valid username/password, hit submit and it freezes. All I can tell is that it gets the httpStatus number 0. As you can see below, I've got it set up to spit out an error message if it fails to load (login_lv.onLoad = function(success)), but it doesn't even do that.
    I've put a crossdomain.xml file at the root level of the domain that's set to allow access from any domain.
    This computer can log in successfully to the online version of the course, but the .app version seems to be hampered by some sort of security setting. The problem computer's settings match the settings of a mac I've tested successfully. It has up-to-date Flash 10 and is running Leopard. Here are security settings:
    System Preferences>Security
         General
              Everything is unchecked
         FileVault
              Turned off
         Firewall
              "Allow all incoming connections" is selected
    I'd appreciate any ideas anyone has. I'm far from wise about the ins-and-outs of mac security, so I may be missing something. I'm happy to clarify anything.
    Code is below. It loads login_lv first, then bookmark_lv. It never gets far enough to load bookmark_lv. The severAppUrl is set to a placeholder for confidentiality's sake. The path is defintely right. It works on other computers.
    Thanks!
    Mike
    // create a LoadVars instance
    var login_lv:LoadVars = new LoadVars();
    // add the login variables to pass to the server
    login_lv.userid = "";
    login_lv.pwd = "";
    login_lv.modname = "a";
    // setup login urls
    var serverAppUrl = "http://myurlhere"; //this is just a placeholder. good ol' confidentiality agreements...
    var loginUrl = serverAppUrl+"login.asp";
    // setup bookmark urls
    var bookmarkUrl = serverAppUrl+"menu.asp";
    var bookmark_lv:LoadVars = new LoadVars();
    // add the bookmark variables to pass to the server
    bookmark_lv.studentid = "";
    bookmark_lv.isAdmin = "";
    bookmark_lv.modname = "A";
    _global.modnameTemp = bookmark_lv.modname;
    // setup login function
    function doLogin() {
    login_lv.userid = login_mc.user_txt.value;
    login_lv.pwd = login_mc.pwd_txt.value;
    login_lv.sendAndLoad(loginUrl,login_lv,"GET");
    // send the login info
    login_mc.continueBtn_mc.onRelease = function() {
    this.enabled = false;
    doLogin();
    // variables will appear in the login_lv object
    login_lv.onLoad = function(success) {
    if (success) {
    if (this.studentid == undefined) {
    login_mc._x = 0;
    trace("not logged in");
    debug_mc.body_txt.text+="\nnot logged in";
    if(this.reas == "Please Complete Overview and first 3 Module(s) with at least 70 score."){
    login_mc.loginBad_mc.gotoAndStop("r2");
    login_mc.loginBad_mc._visible = true;
    } else if(this.reas == "Please Complete Overview Module first."){
    login_mc.loginBad_mc.gotoAndStop("r3");
    login_mc.loginBad_mc._visible = true;
    } else {
    login_mc.loginBad_mc._visible = true;
    } else {
    login_mc._x = 800;
    trace("now logged in");
    debug_mc.body_txt.text+="\nnow logged in";
    trace("studentid: "+this.studentid);
    trace("isAdmin: "+this.isAdmin);
    //track variables for later use
    _global.studentidTemp = this.studentid;
    _global.isAdminTemp = this.isAdmin;
    bookmark_lv.studentid = ""+this.studentid+"";
    bookmark_lv.isAdmin = ""+this.isAdmin+"";
    bookmark_lv.sendAndLoad(bookmarkUrl,bookmark_lv,"GET");
    }else{
    debug_mc.body_txt+="\nlogin load error"
    login_lv.onHTTPStatus = function(httpStatus:Number) {
        this.httpStatus = httpStatus;
        if(httpStatus < 100) {
            this.httpStatusType = "flashError";
        else if(httpStatus < 200) {
            this.httpStatusType = "informational";
        else if(httpStatus < 300) {
            this.httpStatusType = "successful";
        else if(httpStatus < 400) {
            this.httpStatusType = "redirection";
        else if(httpStatus < 500) {
            this.httpStatusType = "clientError";
        else if(httpStatus < 600) {
            this.httpStatusType = "serverError";
    debug_mc.body_txt.text+="\n login_lv HTTPStatus number="+httpStatus+" HTTPStatus type="+this.httpStatusType;
    //prepare bookmarkXML to receive returned info from bookmark_lv function
    var bookmarkXML = new XML();
    bookmarkXML.ignoreWhite = true;
    bookmarkXML.onLoad = bookmark_lv;
    // variables will appear in the bookmark_lv object
    bookmark_lv.onLoad = function(success) {
    if (success) {
    trace("bookmarked");
    debug_mc.body_txt.text+="\nbookmarked";
    trace("bookmarkXML: "+bookmarkXML);
    var bookmarkNode = mx.xpath.XPathAPI.selectNodeList(this.firstChild, "/bookmark");
    trace("bookmarkNode: "+bookmarkNode);
    var bookmarker:String = unescape(eval("bookmark_lv"));
    trace("bookmarker: "+bookmarker);
    bookmarker = bookmarker.split("<xml>").join("");
    bookmarker = bookmarker.split("<bookmark").join("");
    bookmarker = bookmarker.split("/bookmark>").join("");
    bookmarker = bookmarker.split("</xml>").join("");
    var startIndex:Number;
    var endIndex:Number;
    startIndex = bookmarker.indexOf(">");
    trace(startIndex);
    endIndex = bookmarker.indexOf("<");
    trace(endIndex);
    var bookFinally:String;
    bookFinally = bookmarker.substr(startIndex+1, endIndex-2);
    bookFinally = bookFinally.split("<").join("");
    setBookmarkStr = ""+bookFinally+"";
    trace("string: "+setBookmarkStr);
    _global.newBookmark = bookFinally;
    play();
    }else{
    debug_mc.body_txt+="\nbookmark load error"
    bookmark_lv.onHTTPStatus = function(httpStatus:Number) {
        this.httpStatus = httpStatus;
        if(httpStatus < 100) {
            this.httpStatusType = "flashError";
        else if(httpStatus < 200) {
            this.httpStatusType = "informational";
        else if(httpStatus < 300) {
            this.httpStatusType = "successful";
        else if(httpStatus < 400) {
            this.httpStatusType = "redirection";
        else if(httpStatus < 500) {
            this.httpStatusType = "clientError";
        else if(httpStatus < 600) {
            this.httpStatusType = "serverError";
    debug_mc.body_txt.text+="\n bookmark_lv HTTPStatus number="+httpStatus+" HTTPStatus type="+this.httpStatusType;

    try using different loadvars instances for your send loadvars and for your receive loadvars.

  • Using Flash's xml.sendAndLoad behind a proxy

    We have a product that uses Directory and Flash to collect
    data and then we send that data to a web server via a soap call. We
    had been using an external perl script to do the soap call for many
    years and are wanting to move the code in to Flash or Directory so
    we can give the user better feed back about what is happening with
    the soap call.
    I created som flash scripts that use the XML object and the
    sendAndLoad function to do the calls. The problem I am finding is
    that if the client is behind a proxy the call fails. Is there a way
    to fix this and correctly authenticate with the proxy server so
    that the soap call goes through?

    I don't know how you'd do this using a Flash object, but
    Director's
    built-in NetLingo xtra can handle SOAP requests as of version
    10.1 and
    this, in conjunction with the proxyServer() command, should
    be all you
    need - assuming you have access to proxy details.
    <
    http://www.adobe.com/devnet/director/articles/webservices.html>

  • AS2 Crossdomain.xml and sendAndLoad

    I have a flash form with input text fields. I am sending the data to a 3rd party server. I can send the information via getURL but I want to send the data without opening a browser window so I am utilizing sendAndLoad. It works great locally but not through a browser (tested in IE and Firefox). I have verified that all the variables and urls are in the correct case, I have tried both Post and Get, I have tried network and local... Ugh! I am losing my hair on this one please help asap!!!
    Here is the file - click on the second image...
    http://www.axonmediagroup.com/adimag...directbuy.html
    Here is the code...
    on (release) {
    if (first_name.text.length == 0) {
    error.text = "** First Name Required **";
    } else if (last_name.text.length == 0) {
    error.text = "** Last Name Required **";
    } else if (address1.text.length == 0) {
    error.text = "** Address Required **";
    } else if (city.text.length == 0) {
    error.text = "** City Required **";
    } else if (state1.value == "") {
    error.text = "** State Required **";
    } else if (postal_code.text.length == 0) {
    error.text = "** Zip Required **";
    } else if (phone_home.text.length == 0) {
    error.text = "** Phone Required **";
    } else if (email.text.length == 0) {
    error.text = "** Email Required **";
    } else {
    System.security.loadPolicyFile('https://app.leadconduit.com/crossdomain.xml');
    var myloadVars:LoadVars = new LoadVars();
    myloadVars.RName = 'AxonMedia';
    myloadVars.AdReferenceID = '944E5433-F8B5-44FF-8085-E4A1D0D844E9';
    myloadVars.ReferenceID = '040E5D57-3A1A-412D-A1F4-B45BD48AE791';
    myloadVars.SUBID = 1;
    myloadVars.xxNodeId = '050l0tjhd';
    myloadVars.xxTest = 'true';
    myloadVars.Country = 'USA';
    myloadVars.first_name = first_name.text;
    myloadVars.last_name = last_name.text;
    myloadVars.SpouseName = SpouseName.text;
    myloadVars.address1 = address1.text;
    myloadVars.city = city.text;
    myloadVars.state1 = state1.selectedItem.label;
    myloadVars.postal_code = postal_code.text;
    myloadVars.phone_home = phone_home.text;
    myloadVars.email = email.text;
    trace(myloadVars);
    myloadVars.sendAndLoad("https://app.leadconduit.com/v2/PostLeadAction?",myloadVars,"POST");
    myloadVars.onLoad = function(success:Boolean) {
    if (success) {
    error.text = "Thank you for contacting us!";
    } else {
    error.text = "Error connecting to server.";
    Here is the code that works via browser...
    on (release) {
    if (first_name.text.length == 0) {
    error.text = "** First Name Required **";
    } else if (last_name.text.length == 0) {
    error.text = "** Last Name Required **";
    } else if (address1.text.length == 0) {
    error.text = "** Address Required **";
    } else if (city.text.length == 0) {
    error.text = "** City Required **";
    } else if (state1.value == "") {
    error.text = "** State Required **";
    } else if (postal_code.text.length == 0) {
    error.text = "** Zip Required **";
    } else if (phone_home.text.length == 0) {
    error.text = "** Phone Required **";
    } else if (email.text.length == 0) {
    error.text = "** Email Required **";
    } else {
    System.security.loadPolicyFile('crossdomain.xml');
    var RName = 'AxonMedia';
    var AdReferenceID = '944E5433-F8B5-44FF-8085-E4A1D0D844E9';
    var ReferenceID = '040E5D57-3A1A-412D-A1F4-B45BD48AE791';
    var TimeFrame = 0;
    var SUBID = 1;
    var xxNodeId = '050l0tjha';
    var xxTest = 'true';
    var Country = 'USA';
    var first_name = first_name.text;
    var last_name = last_name.text;
    var SpouseName = SpouseName.text;
    var address1 = address1.text;
    var city = city.text;
    var state1 = state1.selectedItem.label;
    var postal_code = postal_code.text;
    var phone_home = phone_home.text;
    var email = email.text;
    getURL("https://app.leadconduit.com/v2/PostLeadAction?", "_blank", "GET");
    error.text = "Thank you for your response!";
    }

    Sounds like the update for Flash 8 may help.

  • XML via sendAndLoad to coldfusion server

    Hello,
    I'm working on this test that calls a coldfusion file server
    and
    delivers a login data.
    Then the server validates the information provided and if
    true returns a
    xml data.
    My problem is when using the sendAndLoad vars, on the onLoad
    I receive a
    xml damaged? or String?.
    Something like a query string result, text like "<" and '
    " ' are
    converted to html text "&lt;" and "&quot;".
    This is my code:
    // LOAD XML
    var loadFromServer:XML = new XML ();
    loadFromServer.ignoreWhite = true;
    loadFromServer.onLoad = function (success:Boolean) {
    if (success) {
    trace(this)
    // traces this:
    //&lt;?xml version=&quot;1.0&quot;
    encoding=&quot;iso-8859-1&quot;?&gt
    // insted of this:
    // <?xml version="1.0" encoding="iso-8859-1"?>
    } else {
    trace("error");
    // SEND
    var sendToServer:LoadVars = new LoadVars ();
    sendToServer.USER_ID = username;
    sendToServer.USER_PASSWORD = userpassword;
    sendToServer.sendAndLoad ("
    http://domain/login.cfm",
    loadFromServer,
    "POST");
    Is this a problem from:
    Flash?
    SendAndLoad with "POST"?
    Server side?
    Could some one help me please?
    Thanks

    Hello,
    I'm working on this test that calls a coldfusion file server
    and
    delivers a login data.
    Then the server validates the information provided and if
    true returns a
    xml data.
    My problem is when using the sendAndLoad vars, on the onLoad
    I receive a
    xml damaged? or String?.
    Something like a query string result, text like "<" and '
    " ' are
    converted to html text "&lt;" and "&quot;".
    This is my code:
    // LOAD XML
    var loadFromServer:XML = new XML ();
    loadFromServer.ignoreWhite = true;
    loadFromServer.onLoad = function (success:Boolean) {
    if (success) {
    trace(this)
    // traces this:
    //&lt;?xml version=&quot;1.0&quot;
    encoding=&quot;iso-8859-1&quot;?&gt
    // insted of this:
    // <?xml version="1.0" encoding="iso-8859-1"?>
    } else {
    trace("error");
    // SEND
    var sendToServer:LoadVars = new LoadVars ();
    sendToServer.USER_ID = username;
    sendToServer.USER_PASSWORD = userpassword;
    sendToServer.sendAndLoad ("
    http://domain/login.cfm",
    loadFromServer,
    "POST");
    Is this a problem from:
    Flash?
    SendAndLoad with "POST"?
    Server side?
    Could some one help me please?
    Thanks

  • Xml.send() works but not sendAndLoad()

    Hi guys, i'm trying to send data to a servlet ( which is
    hosted on a different server and managed by a 3rd party so i can't
    change it)
    When I use the following code:
    requestXML.send ("
    http://www.mydomain.com/xmlpost",
    "_blank","POST");
    it opens a new browser window which displays the xml
    response. All good.
    But I don't want a new broswer window. I want the flash to
    wait and see what the response is. So I use:
    requestXML.sendAndLoad ("
    http://www.mydomain.com/xmlpost",
    myLoginReply_xml,"POST");
    var myLoginReply_xml : XML = new XML ();
    myLoginReply_xml.contentType = "text/xml";
    myLoginReply_xml.ignoreWhite = true;
    myLoginReply_xml.onLoad = myOnLoad;
    function myOnLoad(success:Boolean) {
    if (success)
    getURL ("javascript:alert('" + myLoginReply_xml + "')")
    } else
    getURL ("javascript:alert('FAIL!')")
    And nothing happens.
    Is there any difference between send and sendAndLoad why it
    wouldn't work? Different security parameters, different dtat
    format, anything?
    Thanks!

    Well that didn't do it. Further investigation brought the
    following facts:
    If i test from the flash environment, Flash doesn't ask for a
    crossdomain.xml and the request is made ( i get an entry in the
    database) and the response sent, but Flash doesn't pick anything up
    and the reply XML.onLoad event never fires.
    If I test from a dev server, flash looks for the
    crossdomain.xml file, but even though it finds it and the servers
    are allowed to communicate, the request never gets sent (no entry
    in the database)
    Arrrrgg I'm pulling my hair over this!
    Anyone able to help ?
    Thanks.

  • SendAndLoad

    Hi,
    How can i implement the sendAndLoad concept in as3 for loading an xml from the following url:
    "http://www.openinghorizons.com/Test/NavText.cfm"
    I have given as follow:
    var variables:URLVariables = new URLVariables();
    var request:URLRequest = new URLRequest();
    //variables.myXML = XML(<test>This is a test</test>);
    request.url = "http://www.openinghorizons.com/Test/NavText.cfm";
    request.method = URLRequestMethod.POST;
    //request.data = variables;
    var loader:URLLoader = new URLLoader();
    loader.dataFormat = URLLoaderDataFormat.VARIABLES;
    loader.addEventListener (Event.COMPLETE, completeHandler);
    function completeHandler (event:Event):void
        try
            var pXml:XML = new XML (event.target.data.myResult);
        catch (e:Error)
            trace ("XML was not found!");
    But its not working
    Regards,
    Sreelash

    You need to call the load() method of the URLLoader.
    loader.addEventListener (Event.COMPLETE, completeHandler);
    loader.load(request);
    then try changing this line
    var pXml:XML = new XML (event.target.data.myResult);
    to
    var pXml:XML = new XML (event.target.data);
    then add in a trace statement for the XML instance
    trace(pXml.toString());
    Doing all the above traces out the XML for me.

  • SendAndLoad fails even though it is permitted (very weird)

    Hi!
    I have to deal with a very weird XML.sendAndLoad error. Maybe
    some of you guys know an answer!
    I implemented an AJAX adapter in Flash to allow crossdomain
    AJAX interaction - and it works fine in general! Except it is
    loaded from one special server, then it fails without any reason. I
    digged into this for hours but I was not able to find a reason.
    To find the reason I added several traces and activated every
    logging option in mm.cfg. Here some data:
    mm.cfg:
    ErrorReportingEnable = 1
    MaxWarnings = 500
    TraceOutputFileEnable = 1
    SecurityDialogReportingEnable = 1
    PolicyFileLog=1
    PolicyFileLogAppend=1
    Traces when the adapter is loaded from
    http://www.dental.pitt.edu/informatics/contactmanagement-externals/ajaxflash/ajaxflash.swf
    this is the server with the problems):
    sendAjaxRequest: entered
    sendAjaxRequest: request object created
    sendAjaxRequest: response object created
    sendAjaxRequest: request submitted
    processAjaxResponse: entered
    processAjaxResponse: request failed
    _root.currentXmlRequestObject.contentType = text/xml
    _root.currentXmlRequestObject.loaded =
    _root.currentXmlRequestObject.status = 0
    _root.currentXmlRequestObject =
    <request><ajax>...</ajax></request>
    processAjaxResponse: javascript callback activated - error
    processAjaxResponse: internal data resetted
    policyfiles.txt log for the same server:
    OK: Root-level SWF loaded:
    http://www.dental.pitt.edu/informatics/contactmanagement-externals/ajaxflash/ajaxflash.swf
    OK: Searching for <allow-access-from> in policy files
    to authorize data loading from resource at
    http://cms.dentalinformatics.com/contactmanagement.v3.ajax/en/public?clientInstanceConfig[ name
    by requestor from
    http://www.dental.pitt.edu/informatics/contactmanagement-externals/ajaxflash/ajaxflash.swf
    OK: Policy file accepted:
    http://cms.dentalinformatics.com/crossdomain.xml
    OK: Request for resource at
    http://cms.dentalinformatics.com/contactmanagement.v3.ajax/en/public?clientInstanceConfig[ name
    by requestor from
    http://www.dental.pitt.edu/informatics/contactmanagement-externals/ajaxflash/ajaxflash.swf
    is permitted due to policy file at
    http://cms.dentalinformatics.com/crossdomain.xml
    Traces when the adapter is loaded from
    http://www.chimos.de/cms-testbed/naos-external/ajaxflash/ajaxflash.swf
    this a the server WITHOUT the problems):
    sendAjaxRequest: entered
    sendAjaxRequest: request object created
    sendAjaxRequest: response object created
    sendAjaxRequest: request submitted
    processAjaxResponse: entered
    processAjaxResponse: request succeeded
    processAjaxResponse: javascript callback activated - ok
    processAjaxResponse: internal data resetted
    policyfiles.txt log for the same server:
    OK: Root-level SWF loaded:
    http://www.chimos.de/cms-testbed/naos-external/ajaxflash/ajaxflash.swf
    OK: Searching for <allow-access-from> in policy files
    to authorize data loading from resource at
    http://cms.dentalinformatics.com/contactmanagement.v3.ajax/en/public;main/default/core/pub lic-interface/register-external?clientInstanceConfig[name
    by requestor from
    http://www.chimos.de/cms-testbed/naos-external/ajaxflash/ajaxflash.swf
    OK: Policy file accepted:
    http://cms.dentalinformatics.com/crossdomain.xml
    OK: Request for resource at
    http://cms.dentalinformatics.com/contactmanagement.v3.ajax/en/public;main/default/core/pub lic-interface/register-external?clientInstanceConfig[name
    by requestor from
    http://www.chimos.de/cms-testbed/naos-external/ajaxflash/ajaxflash.swf
    is permitted due to policy file at
    http://cms.dentalinformatics.com/crossdomain.xml
    This is the
    crossdomain.xml file (I know it allows everything, but I
    wanted to be sure ...)
    http://cms.dentalinformatics.com/crossdomain.xml
    I placed the
    fla file here
    http://www.chimos.de/ajaxflash.fla
    , which consists of 4 Key Frames for the interaction with
    Javascript.
    Your help is highly appreciated!
    Thank you!
    Niklas

    Hi Ajeet
    Thanks for you reply.
    Unfortunately it does not help to delete the locks in SM12 - they keep popping up.
    Regarding SM50, then we see the process here. But when we kill the process it just pops up again.
    I have now asked the BASIS guys to kill the request at OS level.
    I just find it pretty weird that we cannot stop a load from within the system.
    Kind regards,
    Torben

Maybe you are looking for

  • Why should I use firefox when chrome is so much better?

    Sorry, Firefox, but your latest bug got me to use Chrome so I could access my regular websites when your browser couldn't. As a result, GOODBYE Firefox, and HELLO CHROME!

  • Pixma MX922 tray hard to open

    I've been using this machine for a few months with no problems but now the bottom paper tray is nearly impossible to open. I have to push it in and out, wiggle it, shake it, etc, numerous times before it pops open. I've examined the tray and the prin

  • WebCenter Forms Recognition Design Training

    I'm looking for any training materials for WebCenter Content Forms Recognition Designer.  Specifically I'm looking for anything that will help me figure out how everything ties together.  Anything that's a sample of how to develop from scratch a simp

  • Location of Preferences files

    I've installed using Encore 2.0 onto a machine running XP Pro. The machine is networked in a large commercial environment. Currently Encore is writing its Preferences Files into a directory under my username which is causing me a big problem because

  • About extra "Profile" info...

    ...continued from the discussion in the "Spam" thread after John C added the "URL", "Bio" and "Products/SysInfo" fields, here: http://forums.adobe.com/message/1930765#1930765 "Edit Profile should now show places for a URL, a brief (1 line or so) bio,