AS2 SendAndLoad Problem

Hello, I have a question about the ActionScript 2.0 SendAndLoad
This is my AS2 code:
var send_lv: LoadVars = new LoadVars ();
var load_lv: LoadVars = new LoadVars ();
send_lv.mydata = '{"name": "guest"}'; // ( JSON data)
send_lv.sendAndLoad ("anyURL", load_lv);
However, when I send, "mydata" would be encoded as: "mydata =%7B%22name%22%3A%22guest%22%7D"
How can I keep "mydata" remain {"name": "guest"}?
Note: This problem doesn't happen in ActionScript 3.0
Thank you very much

Thank you very much
But this doesn't work
send_lv.mydata={name:"guest"} → [object Object](mydata=%5Bobject%20Object%5D)

Similar Messages

  • AS2 swf problem under AS3 swf (probably Tweener problem)

    Hello. I have this problem for a days and it hasn't been soluted yet although I put it on couple of forums. I have 3 files: test.fla, file_as2, file_as3.
    The test.fla file is a typical Loader, which loads external swf files and shows them on the screen. After any key is pressed, the swf is deleted from the screen and loaded again.
    The file_as2 and file_as3 are the AS2 and AS3 compiled having a simple square animation (6 squares fading in from alpha 0 one by one) animated by caurina Tweener. If the file_as3 is compilated and loaded externally there is no problem (six sqares are fading in, after pressing any key the vanish and appear (loaded) again and again...). But if the swf as2 file is loaded, it shows the squares only once and after pressing any key and loading it again, it doesn't shows it at all.
    I guess it's Tweener problem, because when i trace it in AS2 file (onUpdate) it traces only at the beginning.
    How it's possible, that AS3 somehow stops all Tweeners in 2nd time loaded AS2 file?? How to fix it?? Sorry for my english, i left a link for these 3 files to find solution. Try it (test.swf) and then change path inside fla to load AS2 file... Thanks for any ideas.
    Link to download: http://www.filolozka.pl/zip/file.ZIP

    Instead of reusing the same Loader, try loading the AS2 movie multiple times using different Loader instances. Instead of using event listeners like normal, this should be easy to do because you can addChild each Loader instance, and when it is loaded it will automatically play. If you are able to load the AS2 movie multiple times at once and have it work for you, then the problem must be in the way that you removing the old movie, and reusing code to load the movie again.

  • Outbound Seeburger AS2 setup problem

    Hello,
    I am trying to setup Seeburger AS2 adapter in the way that I can post documents from our SAP system to the external server that is sitting in the internet. I was following the SAPXI30_AS2Adapter.pdf guide but it is still not working. When I initiate the posting in SAP it goes correctly to XI, XI correctly process the IDOC and maps it to XML document and pass it to AS2 adapter. But here it fails. In adapter monitoring I can see this error message:
    Description: AS2 Adapter failure
    Details: Outbound configuration error: Sender configuration incomplete - perhaps AS2ID missing..[8/31/06 9:23 AM]
    ConnectionId: null-allianceTestingServer_Party >> PartnerAddressId: allianceTestingServer_Party >> Transferred: 0/0 >> Error type: pre plugin call failed >> Error date: 1157030604769 >> Description: [8/31/06 9:23 AM]
    2006/08/31 - 09:28:28:40
    Retryable fault in 'Channel:allianceTestingServer_AS2_outbound'.
    I think I've setup everything correctly so no idea where can be the problem. It is saying that I probably do not have AS2ID setup but it is either not true or I do not know how to do it.
    Any help would be very much appreciated.
    Thank you.
    Martin
    Solved on my own:
    I really didn't have sender configuration completed. I've created new Party, configured it as AS2, created AS2ID for it etc. and then forced it as a sender in the Receiver Agreement.

    Hi Anoop!
    Yes, we use it on receiver side.
    ModuleProcessorExitbean exists, so it should be ok.
    What I'm not sure about is the thing with identifiers..
    In Party (let's call it X) - Identifiers, we have default agency http://sap.com/xi/XI, scheme XIParty and name X.
    What values should be there for Seeburger?
    We have Agency: Seeburger, Scheme: AS2ID; Name: X.
    Is it correct?
    We also received some 9 char long number - probably some ID to adapter(?). Any idea, if it is necessary and where to use it?
    Is it necessary to configure identifier seeburger also in Identifiers tab of Receiver communication channel? Or we can leave it empty (both- sender, receiver)?
    We use this in B2B scenario, of course: Target system is party, but we use our R/3 as Business System w/o party. Is it ok, or do we laso have to "be" as Party in our configuration scenario?
    A lot of questions, but points will be awarded 4 sure
    Thanx!
    Peter

  • AS2 testing problem

    Hi Experts,
    We have Seeburger scenrio while testing with My partner received HTTP Error 403 forbidden.
    For configuration we are using AS2 adapter.
    what does this mean is it we are having cofiguration problem or is it partner setup.
    Regards,
    J

    I can think of few checks, may be this can help
    1. A valid sender agreement is missing.
    2. Check  AS2 ID.
    3. There are more then one AS2 sender agreements with the same sender AND receiver party.

  • AS2 Sender problem with German "Umlaute"

    Hello experts,
    I have an AS2 sender adapter sending orders into my SAP system. My problem is though that it deletes all German "Umlaute" before converting it into XML.
    I used to use the "CallBicXIRaBean" to do the Encoding with ISO-8859-1 and it did not work. So now I am using the "CharsetConversion" to do that but it still does not work.
    In the Module of the AS2 sender I am using:
    1) CharsetConversion
    - sourceDest --> MainDocument
    - targetDest --> MainDocument
    - sourceEnc --> ISO-8859-1
    - targetEnc --> ISO-8859-1
    2) CallBicXIRaBean
    - mappingName --> E2X_ORDERS_UN_D93A
    3) localejbs/CallSapAdapter
    - 0
    Does anyone have an idea what I have to change?
    Thank you very much for your help!
    Best regards,
    Peter

    Hello Iddo,
    Thank you for your answer.
    When I expect Umlaute in a message I always use ISO-8859-1 and not UTF-8.
    The Umlaute are actually deleted. For example the German "für" looks like this "f". Or "Präferenzsituation" looks like this: "Prerenzsituation". So it kills the Umlaut and the following character.
    The sender insists that he sends the messages with Umlaute. Now I activated the AS2 Message Dumping and hopefully will see what the message really looks like. Maybe the Umlaute are already deleted when they get to the AS2 adapter. I hope to find out soon.
    Best regards,
    Peter

  • As2 sendandload in as3

    Okay this can't be that hard, but Ihave as2 script that loads
    xml, then i append few tags in it and send it to a php script.
    I use the following to send it
    myXML.sendAndLoad("processXML.php", receiverXML);
    in the processXML.php i have:
    <?php
    $file = fopen("guestbook.xml", "w+") or die("Can't open XML
    file");
    $xmlString = $HTTP_RAW_POST_DATA;
    if(!fwrite($file, $xmlString)){
    print "Error writing to XML-file";
    print $xmlString."\n";
    fclose($file);
    ?>
    Now i just can't figure out how i do that in AS3.
    Can someone please help me with this?

    Well, loading an xml document is fairly easy:
    import flash.net.*
    import flash.xml.XML
    import flash.event.*
    import flash.error.*
    var xml:XML = new XML("<doc></doc>")
    var url:String = "doc.xml";
    var request:URLRequest = new URLRequest(url);
    var loader:URLLoader = new URLLoader();
    loader.addEventListener(Event.COMPLETE, onComplete);
    loader.load(request);
    function onComplete(evt:Event){ trace(evt.target.data); }
    That said, if you change the URLRequest method to POST and
    attach some data,
    it should look like this. (Note: I don't have access to a web
    server at the
    moment, so this is not tested.)
    import flash.net.*
    import flash.xml.XML
    import flash.event.*
    import flash.error.*
    var xml:XML = new XML("<doc><node>Hello
    World</node></doc>")
    var url:String = "processXML.php";
    var request:URLRequest = new URLRequest(url);
    request.method=URLRequestMethod.POST;
    request.data = xml;
    var loader:URLLoader = new URLLoader();
    loader.addEventListener(Event.COMPLETE, onComplete);
    loader.load(request);
    function onComplete(evt:Event)
    trace(evt.target.data);
    xml = new XML(evt.target.data)

  • AS2 Certificate Problem

    Hi,
    I'm doing one IDOC to AS2 Scenario. Where we are posting the IDOC successfully, but we are not able to receive the message.
    It is giving some certificate error. Definitely some connectivity issue.
    The exact error is :
    "Message processing failed. Cause: javax.resource.ResourceException: Fatal exception: com.sap.aii.af.ra.cci.XIRecoverableException: SEEBURGER AS2: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found # , SEEBURGER AS2: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found # "
    Can someone please tell what exactly can be done to ensure the trusted certificate.
    FYI : The SSL certificate in the communication channel and the Encryption certificate and authentication certificate in receiver agreement are all same.
    Thanks,
    Vikas

    HI Vikas,
       Can you check the expiry date on the AS2 certificate?
    Regards,
    ravi

  • AS2 Question/Problem..

    I have a swf where I'm calling two external swf files.  These external swf files also load data from an xml file.  The problem is that the first external swf file that I load is the only one that loads.  Well.. the other swf does load, but it loads the first xml file loaded.  I've tried adding each swf to their own frame and holder, then unload.. still no luck.  I can run my swf, click the button to load mc1.swf and it loads fine.  I then click the button to unload mc1/load mc2, but the xml data form mc1 is loaded.  If I close the player, and launch mc2, it loads fine, but now mc1 will not load!!  AGG.. this is driving me crazy.
    Here's the file structure I'm using:
    root/files/main.swf  -  my swf file that loads the other files
    root/files/mc1.swf
    root/files/mc2.swf
    root/files/mc1data/info.xml
    root/files/mc2data/info.xml
    The thing is I can't change the path, or file name for mc1/2's xml file, as I don't have the source.
    I really appreciate all the assistance I can get.
    TIA!!

    that's not the path used by the swfs.   when you run one of the swfs by itself (without loading it into another swf), what path is used to retrieve the xml?
    and here's the code you should be using:
    stop();
    this.createEmptyMovieClip("image_mc",this.getNextHighestDepth());
    var mclListener:Object = new Object();
    mclListener.onLoadInit = function(target_mc:MovieClip) {
        target_mc._width = 800;
        target_mc._height = 400;
    var image_mcl:MovieClipLoader = new MovieClipLoader();
    image_mcl.addListener(mclListener);
    function loadSWFFile(which:String) {
        image_mcl.loadClip(which,image_mc);
    btn1.onRelease = function() {
        loadSWFFile("mc1.swf");
    btn2.onRelease = function() {
        loadSWFFile("mc2.swf");

  • XML sendAndLoad problem

    I have a simple sendAndLoad XML request that works perfectly
    on 95% of the computers I have used. I have check crosssite stuff
    and everything i can think of. Its not browser specific ,os
    specific, or flash version specific. On these computers I can run
    the same flash file on a standalone player and everything works
    flawlessly but inside of any browser it makes the request for the
    XML file and stops right there. After a while like 10 minutes flash
    gets tired of waiting and returns not found. I can navigate to the
    xml file via the same browser. Upgrading Flash doesn't help. The
    only thing consistent is it only happens to windows computers. The
    requested URL is the complete URL. I have changed this and still
    the same. IE or Firefox still the same. Version 9 player in both. I
    have montiored network traffic and see the request made and maybe a
    response but flash has moved.
    Any Help would be appreciated.

    ANSWER: I figured it out myself. I am just replying to let
    everybody else know how I fixed it. I had the full URL in the load
    request and apparently some Flash players don't like this. I put a
    link to the file without the domain name and everybody is working
    fine. The load function, Flash, or something could not resolve the
    domian correctly and could not find the XML file. I was not getting
    a request for the file from the Flash movie so I knew it had to be
    soemthing in Flash.

  • SendAndLoad problem 

    So it's work when i strat it from Flash as "CRL + ENTER" but
    when i start it from html from my appache it won't to work .I need
    help

    I only use $_REQUEST for PHP.
    >the PHP does NOT execute successfully and I do not
    receive an email.
    What does "NOT execute successfully" mean? Do you have an
    error message?
    Does the PHP script work from a normal HTML form running from
    the server?
    Is the server script in the same domain as the Flash movie?
    Flash really only sends data to a server script, so the
    problem appears to
    be more connecting to the script, the script, the data send
    to the script
    and such.
    Lon Hosford
    www.lonhosford.com
    May many happy bits flow your way!
    "TheCosmonaut" <[email protected]> wrote in
    message
    news:e4l5cb$ssb$[email protected]..
    I'm having the same issues doing my tell a friend script. I
    have a PHP
    posted
    on my server. The PHP uses $_RECEIVER to process the
    variables sent by
    Flash.
    Here's the results of my tests:
    1. If I pass the variables to the PHP file in the URL, the
    PHP executes
    successfully and I receive an email.
    2. If I pass the variables to the PHP file using the Flash
    file while
    testing
    locally (CTRL+ENTER), the PHP executes successfully and I
    receive an email.
    3. If I pass the variables to the PHP file using the Flash
    file posted on
    the
    server, the PHP does NOT execute successfully and I do not
    receive an email.
    I've never heard of this kind of thing happening before.
    Anyone have any
    ideas?
    --eric

  • CS4 AS2 Tween Problem

    Hi there,
    Wondering if anyone can help with a crippling issue in Flash CS4. In short, the post production company I work for asked me to redesign their website using the version that happened to be hanging round the office- Flash MX (circa 2002). Half way through the project we bought CS4 as the site is quite video heavy and MX isn't really set up for that.
    I've opened my mx file in the new version and all has worked well- however a couple of days down the line i'm now having major tweening issues on the pages i've created since upgrading.
    When transitioning between scenes (yes i know everyone hates scenes but it seemed right at the time) the classic alpha tweens that fade the new scene in seem to be 'paused' on the first frame when viewed as an SWF. All is fine when scrubbing through the timeline. As I designed the site and know where the buttons are I can click them, it's just they're not visible.
    I've done a lot of reading into this and have seen reports of similar issues with dynamic text elements not alpha tweening properly - but this is all of the layers that have a tween at the start. Sadly i'm really tight on time to get the site done as it's only a side project and i've got work building up.
    If anyone can shed any light on the situation I would be very grateful. I can supply the .FLA on request but it's 200mb so it's going to be a bit of a beast to send around.
    I've searched for things like 'tween conflict' 'alpha tween not working' 'classic tween error' etc to no avail.
    Thanks in advance.
    Jon

    Hi Jon,
    Does this sound like the problem you're encountering? http://kb2.adobe.com/cps/496/cpsid_49616.html
    (there are a few workarounds on the page)

  • AS2 Preloader Problem

    I have just completed my first large flash project and I have been trying to figure out why this preloader starts at 85% for the longest time but I can't seem to.  I have changed the export classes frame to 5 and tried about everything else I have come across, but still no dice.  Could someone please have a look at the source file and tell me if you see what is wrong. The file is too big to attach here so but I put it on my site.
    http://www.customxbats.com/downloads/baseballBuilderSM.fla
    Thanks,
    Paul

    Hi Paul.
    The reason for that is that the flash player attempts to load most of the SWF content before it is even able to go to frame one (where we usually place our code for preloading). In order to have an efficient preloader, you need to separate the main SWF file from the preloader SWF. And remember to make the preloader SWF file as small as possible (1KB - 5KB is good) so that it will appear immediately. I've made a preloader that is 1.35KB in size, you can try use it, just change the loadurl path in frame 1 (currently set to "External.swf") to the name of your main SWF file.

  • Cs4, publishing to fp9 as2, problem with mask

    hello;
    I have a tf on the stage, with character embedding;
    the tf is masked;
    I have publish setting on flash player 9, AS2;
    when I play swf in flash player, the tf is not visible;
    if I publish to fp7, as2, no problem;
    any thoughts?
    thanks,
    Shannon

    Hi,
    Try exporting your file with the following settings to get a high quality GIF
    Dimensions   : Match movie
    Playback       : Animated
                        : Loop continuously
    Options         : Optimize colors
                        : Smooth
    Transparent   : Opaque
    Dither           : None
    Palette Type : Adaptive
    Max colors   : 99999
    Thanks!
    ps: please mark this post as Answered if this of any help to you

  • BizTalk AS2 receive location (500.0 error) reported by eternal party when trying to reach BizTalk 2010.

    
    Hi There - 
    We are facing AS2 connection problem with one of our customers. Following is scenario.
    Problem Scenario –
    We BizTalk 2010 server with which we are trying to connect one of our customer’s bank for secure communication.
    Our UAT box  has been done with a successful test connection with that bank however when we move to production server, whenever the Bank try to send any simple .txt file via AS2 protocol, we do not receive the file and bank receive an error following
    message .
     <div><fieldset>   <h2>500
    - Internal server error.</h2> 
      <h3>There is a problem with the resource you are looking for, and it cannot be displayed.</h3> 
    Bank has AS2 setup on following environment.
    AS2 Software Used
    Connect Enterprise
    AS2 Software Provider
    Sterling Commerce  (IBM Mail Slot)
    Platform on which AS2 Software is installed
    AIX
    I have compared the UAT and Production servers AS2 receive URL configurations and these are completely alike.
    Whenever I try browsing the virtual directory setup for AS2 from IIS 7.0 or from
    internet explorer with hostname and virtual directory, I get 500.0 internal error which following post says is absolutely fine, this should not be a problem.
    XXXXXXX
    I have setup the IIS Log trace. Following are the traces from IIS. 
    Action Performed to resolve the issue.
    Compared the UAT and Production server settings both are alike.
     Setup the AS2 receive with reference of following URL .
    http://msdn.microsoft.com/en-us/library/bb727975.aspx
    http://biztalk-dish.blogspot.com.au/2012/07/guidance-on-edi-over-as2-in-biztalk.html
    http://www.biztalkbill.com/Home/tabid/40/EntryId/66/Configuring-BTSHTTPReceive-dll-to-work-on-IIS-7.aspx
    Installed the party certificates by referring following URL
    http://msdn.microsoft.com/en-us/library/aa559902.aspx#step5
    App Pool a/c and (Isolated and Inproc) host a/c and the receive pipline host a/c are same and certificates has been installed by loggin to server with same account .
    Firewall ports are open to accept the traffic, I have to log from network team.
    I tried following URL.
    http://go4answers.webhost4life.com/Example/http-receive-url-without-78425.aspx  (I have suffix the DLL name to the URL which party has to reach.
    Example - http://XXXXXXX/EDIIN/BTSHTTPReceive.dll
    http://hostname/virutalDirectory/BTSDLL
    I have tried resolving 403/ 405 error which sometimes reported in my IIS error log, which generally arrive after reset of IIS 7.0
    Using URL -        
    http://go4answers.webhost4life.com/Example/btshttpreceivedll-405-error-57131.aspx
    http://biztalk-diary.blogspot.com.au/2010/05/btshttpreceive-error-405-method-not.html
    IIS errors has been referenced using following Url
    http://support.microsoft.com/kb/943891/en-us
    following are the error logs from IIS 7.0 log file, whenever party sends any message to our server.
    2013-12-14 19:02:59 10.83.241.83 POST /EDIIN/BTSHTTPReceive.dll - 80 - 10.83.251.4 Jakarta+Commons-HttpClient/3.0-rc4 500 0 0 9812
    2013-12-14 19:03:48 10.83.241.83 POST /EDIIN/BTSHTTPReceive.dll - 80 - 10.83.251.4 Jakarta+Commons-HttpClient/3.0-rc4 500 0 0 343
    2013-12-14 19:04:48 10.83.241.83 POST /EDIIN/BTSHTTPReceive.dll - 80 - 10.83.251.4 Jakarta+Commons-HttpClient/3.0-rc4 500 0 0 406
    Sometimes I find following entries though
    #Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-status time-taken
    2013-12-14 20:10:55 ::1 GET /EDIIN - 80 - ::1 Mozilla/4.0+(compatible;+MSIE+8.0;+Windows+NT+6.1;+WOW64;+Trident/4.0;+SLCC2;+.NET+CLR+2.0.50727;+.NET+CLR+3.5.30729;+.NET+CLR+3.0.30729;+.NET4.0C;+.NET4.0E)
    301 0 0 453
    2013-12-14 20:10:55 ::1 GET /EDIIN/ - 80 - ::1 Mozilla/4.0+(compatible;+MSIE+8.0;+Windows+NT+6.1;+WOW64;+Trident/4.0;+SLCC2;+.NET+CLR+2.0.50727;+.NET+CLR+3.5.30729;+.NET+CLR+3.0.30729;+.NET4.0C;+.NET4.0E)
    500 0 193 15
    Any advice will be a great help.
    Please Note: We have setup other virtual directories for receive HTTP connection using (BTSHTTPReceive.dll) file and these connections has been setup using same user account and are working perfectly fine.
    I repeat,
    >>           I have compared all the configurations for AS2 receive location with other setup on Production for other customers ( this is similar)
    >>           I have cross checked the setting with UAT box where connection with this Bank is working absolutely fine but in production it is NOT and configurations are similar.

    Hi,
    It maybe windows firewall issue. you can try create a Windows Firewall exception if
    Windows Firewall is running on your server. And please refer the blog about 500 error in iis which might helpful:
    http://support.microsoft.com/kb/942031/en-us
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. <br/> Click <a
    href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.

  • [AS2] Navigation à partir d'un bouton dans clip vers une autre séquence

    Bonjour à tous,
    Je suis entrain de développer une animation en AS2, mon problème est le suivant:
    Je travaille avec clip qui contient des boutons, et en cliquant sur ces boutons je souhaite passer à d'autres séquences. J'ai réussi à naviguer dans la même séquence en utilisant "_root.gotoAndStop(num_image);" mais je n'ai pas réussi à naviguer vers d'autres séquences.
    l'arborescence de mon animation est la suivante :
    - séquence 1 (nommée "maquette") : elle contient un premier symbole clip "clip1", qui contient à son tour un clip "clip2" (cad clip2 est integré dans clip1). Clip 2 contient un bouton, en cliquant sur ce bouton je veux aller à l'image 1 de la séquence 2 (nommé seq2), mais je n'arrive pas.
    Pouvez vous m'aider? Merci

    English Translation from Google: Hello everyone, I am trying to develop an animation in AS2, my problem is this: I work with clip with buttons, and clicking on these buttons I want to move to other sequences. I managed to navigate through the same sequence using "_root.gotoAndStop (num_image)," but I was not able to navigate to other sequences. the tree of my animation is as follows: - Sequence 1 (called "model"): it contains a first symbol clip "clip1", which in turn contains a "clip2" clip (ie is integrated into clip1 clip2). Clip 2 contains a button, clicking this button I want to go to Frame 1 of the sequence 2 (named seq2), but I can not. Can you help me? thank you
    By "sequence" I assume you mean "scene", since you say you can navigate within the first sequence using "_root.gotoAndStop".  Unfortunately, Flash's gotoAndStop( [scene:String], frame:int ) overload just doesn't work when you try to specify a scene name.
    To work around that, just put a unique frame label on your 2nd scene's main timeline and navigate to it using _root.gotoAndStop("frame_label").  Flash will figure out which scene the label is on as long as you use _root.gotoAndStop.
    Your handler would look like this:
    clip1.clip2.button.onMouseDown = function() { _root.gotoAndStop( "frame_label_in_scene_2" ); }

Maybe you are looking for