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

Similar Messages

  • 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)

  • 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 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.

  • SendandLoad and ASP problem

    Hi,
    Can anyone help with the following please? -
    I am using sendandLoad from Flash and pass information via an
    asp script, however I cant seem to get it to work properly.
    I trace what's passed back in Flash to see the result.
    I just need to know why the following syntax doesn't work -
    Response.Write("&r_cnt=" & rvar & "&")
    rvar is just a variable value I want to pass back. When I run
    this in Flash it says the value of r_cnt is "
    If I type -
    Response.Write("&r_cnt=0&") and run it through, the
    value of r_cnt is traced as 0 correctly.
    I can't see why the concatenation using rvar doesn't work.
    Any help appreciated.

    wouldnt it be
    Response.Write("r_cnt=" & rvar)

  • Problem with sendAndLoad

    Hello Flash World
    This is my first posting.I tried my level best to sort this
    issue myself but in vain.Here is my code....
    Please help me as I am struggling with this.I tried with send
    and it works fine but I want to use sendAndLoad as I want a
    confirmation and display a Thank u msg ven the vars have been
    received by the PHP.
    Awaiting help
    Franc

    >>Does the PHP need to send something back to the swf ?
    Yes. I usually send an error code back - something like:
    echo("&ok=1");
    Then in your onLoad you can do:
    recv.onLoad = function(success:Boolean){
    if (success){
    trace(this["ok"]);
    Dave -
    www.offroadfire.com
    Head Developer
    http://www.blurredistinction.com
    Adobe Community Expert
    http://www.adobe.com/communities/experts/

  • Problem with contact form

    Hi-
    I found a contact form for my Flash website but it's not working properly. It uses ActionScript 3 and PHP, both of which I don't know much about. Because of this, I can't pinpoint the problem or how to fix it. Here's what's going on:
    1) Each field in the form only allows 3 characters and no special characters such as @ _ ! . , etc...
    2) When the user goes to the next field in the form, the previous field appears blank but the when clicking on that again, the original text appears.
    3) When submitting the form, it just keeps saying "in progress" and never shows the confirmation text nor does the email get sent. There is an HTML file included with this form but I am not sure if I need to put that in as I have embedded this form into an SWF file so I don't think I need that code but please let me know if I am wrong about this.
    I am posting both the AS code and PHP code below.. if someone can help me figure this out I would greatly appreciate it. I am not sure which file the problem is in. If someone here doesn't know PHP then at least see the AS code and let me know if the problem is in that or not. That way I can pinpoint which file the problem is coming from and then seek further help if needed. To see the form in action, go here: http://www.poojasdesigns.com/ and click on "Contact Me".. here are the codes:
    ActionScript 3.0
    //presistant reference to this movie's mail timeline:
    var mainTL:MovieClip = this;
    //start off with submit button dimmed
    submit_mc._alpha = 40;
    //create the LoadVars objects which will be used later
    //one to send the data...
    var dataSender:LoadVars = new LoadVars();
    //and one to recieve what comes back
    var dataReceiver:LoadVars = new LoadVars();
    create listener for Key Object
    this is just a U.I. thing - "wakes up" the submit button
    when all fields have at least some content
    var formCheck:Object = new Object();
    formCheck.onKeyUp = function() {
         if (name_txt.text != '' &&
                   email_txt.text != '' &&
                   subject_txt.text != '' &&
                   message_txt.text != '') {
              //clear any alert messages
              alert_txt.text = '';
              //enable the submit button
              submit_mc._alpha = 100;
         } else {
              //remain disabled until all fields have content
              submit_mc._alpha = 40;
    Key.addListener(formCheck);
    /*#######SET STYLES FOR TEXT FIELDS#######*/
    //define styles for both normal and focussed
    //set hex values here that work with your site's colors
    var normal_border:Number = 0x000000;
    var focus_border:Number = 0xFA8D00;
    var normal_background:Number = 0xFFFFFF;
    var focus_background:Number = 0xE9E3E3;
    var normal_color:Number = 0xFFFFFF;
    var focus_color:Number = 0x000000;
    //create an array containing the fields we wish to have styles applied to
    inputs=[name_txt,email_txt,subject_txt,message_txt];
    a "for in" loop now iterates through each element in the "inputs" array
    and applies our "normal" formatting to each input text field
    for( var elem in inputs) {
         inputs[elem].border = true;
         inputs[elem].borderColor = normal_border;
         inputs[elem].background = true;
         inputs[elem].backgroundColor = normal_background;
         inputs[elem].textColor = normal_color;
         /*this takes care of applying the "normal" style to each of the four input fields;
              the following TextField prototypes handle highlighting when an input field
              gains focus and resetting to normal when a field loses focus*/
         inputs[elem].onSetFocus = function() {
              this.borderColor = focus_border;
              this.backgroundColor = focus_background;
              this.textColor = focus_color;
         inputs[elem].onKillFocus = function() {
              this.borderColor = normal_border;
              this.backgroundColor = normal_background;
              this.textColor = normal_color;
    //finally: make the first field (name_txt) selected when the movie loads
    Selection.setFocus(name_txt);
    /*DEFINE SUBMIT BUTTON BEHAVIOR*/
    submit_mc.onRelease = function() {
         //final check to make sure fields are completed
         if (name_txt.text != '' &&
                   email_txt.text != '' &&
                   subject_txt.text != '' &&
                   message_txt.text != '') {
              alert_txt.text='';//clear any previous error messages or warnings
              //advance playhead to frame 2 - the "processing" message
              mainTL.play();
              //assign properties to LoadVars object created previously
              dataSender.name = name_txt.text;
              dataSender.email = email_txt.text;
              dataSender.subject = subject_txt.text;
              dataSender.message = message_txt.text;
              //callback function - how to handle what comes abck
              dataReceiver.onLoad = function() {
                   if (this.response == "invalid") {
                        mainTL.gotoAndStop(1);
                        alert_txt.text = "Please verify your email address - it appears to be incorrect."
                   } else if (this.response == "passed") {
                        mainTL.gotoAndStop(4);
              //now send data to script
              NOTE: the line below presumes the Flash swf file and php script are in the
              SAME DIRECTORY on your server. If this is not the case (if for example you
              wish to put the php script along with other similar items in a "scripts"
              directory) you MUST MODIFY THE PATH. Otherwise the Flash movie won't be
              able to locate the php script.
              dataSender.sendAndLoad("processEmail.php", dataReceiver, "POST");
         } else {
              //warning if they try to submit before completing
              alert_txt.text = "Please fill out all the fields before submitting the form.";
    PHP
    <?php
    //create short variable names
    $name=$_POST['name'];
    $email=$_POST['email'];
    $subject=$_POST['subject'];
    $message=$_POST['message'];
    $name=trim($name);
    $email=trim($email);
    $subject=StripSlashes($subject);
    $message=StripSlashes($message);
    /*my email address - dummy address inserted for privacy in this forum*/
    $toaddress='[email protected]';
    if (preg_match ("/^[-_.[:alnum:]]+@((([[:alnum:]]|[[:alnum:]][[:alnum:]-]*[[:alnum:]])\.)+(ad|ae|aero|af|ag|ai|al|am|an|ao|aq|ar|arpa|as|at|au|aw|az|ba|bb|bd|be|bf|bg|bh|bi|biz|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|com|coop|cr|cs|cu|cv|cx|cy|cz|de|dj|dk|dm|do|dz|ec|edu|ee|eg|eh|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gh|gi|gl|gm|gn|gov|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|in|info|int|io|iq|ir|is|it|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|mg|mh|mil|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|museum|mv|mw|mx|my|mz|na|name|nc|ne|net|nf|ng|ni|nl|no|np|nr|nt|nu|nz|om|org|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|pro|ps|pt|pw|py|qa|re|ro|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|st|su|sv|sy|sz|tc|td|tf|tg|th|tj|tk|tm|tn|to|tp|tr|tt|tv|tw|tz|ua|ug|uk|um|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|yu|za|zm|zw)$|(([0-9][0-9]?|[0-1][0-9][0-9]|[2][0-4][0-9]|[2][5][0-5])\.){3}([0-9][0-9]?|[0-1][0-9][0-9]|[2][0-4][0-9]|[2][5][0-5]))$/i", $email)) {
    mail($toaddress,$subject,$message,"From: $name <$email>\r\nReply-To: $email\r\nReturn-Path: $email\r\n");
    //clear the variables
    $name='';
    $email='';
    $subject='';
    $message='';
    echo "response=passed";
    else {
    echo "response=invalid";
    exit;
    ?>
    Please let me know how to proceed. Thanks so much!
    *Pooja*

    You say you don't know much about AS3, and that you have embedded this form into an swf.  In what manner did you embed it, and what version of AS does the swf use?  Have you tried using the form in the page that was provided as a standalone test to see if it works?

  • 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.

  • Dynamic variables' naming from SendAndLoad

    Hello,
    Been chasing my tail for almost 2days now, I'm having
    problems on how to load dynamically named variables and place it on
    dynamically named movieclips. I'm loading variables from php/mysql
    query thru sendAndLoad (no problem with that). The loaded variables
    are names of swf files that i'm trying to load on dynamically
    numbered movieclips. The problem is it just wont load. I've
    searched the net for similar codes, but with no luck. I'm guessing
    that my error is in getting the exact variable name to load.
    Heylp...

    No problems, you're welcome.
    I think the eval should do the same thing as what I had. I
    can't remember, I don't tend to use eval in flash - don't really
    know why. I think loadMovie also accepts a string argument (which I
    assume it 'evals') for a target in which case it may also work
    without the eval and just with ,"_root.my_movieclip" + i; (didn't
    try it so don't know for sure).
    Good luck with it.

  • 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>

  • Problem reading external HTML format from text file

    I have a text file containing html formatted text which I try to get into a textfield.
    All works fine locally and even on my localhost test server, but when uploading to the real server - I get a blank.
    Anyone have any ideas? THANKS
    The text file :
    &t2=<TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Comic Sans MS" SIZE="14" COLOR="#FF0000" LETTERSPACING="0" KERNING="0">Some text here</FONT></P></TEXTFORMAT><TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Comic Sans MS" SIZE="14" COLOR="#FF0000" LETTERSPACING="0" KERNING="0">One more line</FONT></P></TEXTFORMAT><TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Comic Sans MS" SIZE="14" COLOR="#FF0000" LETTERSPACING="0" KERNING="0">And more text here</FONT></P></TEXTFORMAT>
    and the AS code in the movie:
    viewData.onPress = function() {
         //get text
         loadText()
    var tz
    function loadText() {
    var my_lv:LoadVars = new LoadVars();
    my_lv.onLoad = function(success:Boolean) {
      if (success) {
      //trace(this.toString())
      mytext.htmlText= this.t2;
      } else {
      //trace("Error loading/parsing LoadVars.");
    my_lv.load("myfile.txt");

    Thanks kglad, I did it and it made me find the real problem:
    The text file is generated by PHP script that gets an html formated text from flash (it is an online editing part of an application):
    the AS code to call the php:
    var send_lv:LoadVars = new LoadVars();
    send_lv.t1 = "&t2="+editor.t1.htmlText+"&";
    send_lv.sendAndLoad("write.php", res_lv, "POST");
    the PHP:
    <?php
    $mydata = $_POST["t1"];
    $myFile = "recipe.txt";
    $fh = fopen($myFile, 'w') or die("can't open file");
    fwrite($fh, $mydata);
    fclose($fh);
    print "&done=done";
    ?>
    From some reason the online server adds \ before any " , but WAMP doesn't.
    here is the text generated on localhost (WAMP)
    &t2=<TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Comic Sans MS" SIZE="14" COLOR="#FF0000" LETTERSPACING="0" KERNING="0">local text</FONT></P></TEXTFORMAT>&
    online server:
    &t2=<TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT FACE=\"Comic Sans MS\" SIZE=\"14\" COLOR=\"#FF0000\" LETTERSPACING=\"0\" KERNING=\"0\">online text</FONT></P></TEXTFORMAT>&
    I know its not a Flash problem now, but do you have any idea?
    Thanks

  • Externally Loaded Dynamic Text Problem

    Hi,
    Has anyone encountered problems loading in a % sign as part
    of a string? For example I'm loading the following in from a
    database through an asp page using sendAndLoad (this is just a
    snippet of the results):
    &AnswerEN1_1=8% &AnswerFR1_1=
    The variable AnswerEN1_1 drops the % sign. The value for the
    variable is just 8. if there's no space between the next variable
    the value of AnswerEN1_1 becomes 8AnswerFR1_1= removing the &
    as well
    Any ideas, solutions?
    Thanks,
    Sean

    Flash is seeing % as the start of a URL code--or perhaps ASP
    is when it serves it up. Either way, you should be able to avoid it
    by pruposely URL encoding it. I don't know any ASP but I'm sure
    there is a URL encode function somewhere. Otherewise, the code for
    % is apparently, %25, according to here:
    http://meyerweb.com/eric/tools/dencoder/

  • 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

  • Variable Name Problem

    Hi all,
    By refering flash remoting variable declaration documents, it
    says we can have a variable with $ and _ as a part of the variable.
    i am using Flash Media server2, And PHP (version5.0.5); for
    remoting.
    when ever i used variable name with _ creates problem and
    shows "" value;
    Following is a sample code,
    var myLoader = new LoadVars();
    myLoader.user_id = "1";
    myLoader.onLoaded = function(){
    myLoader.sendAndLoad("myPhpPath",myLoader,"POST");
    // this code creates problem(but its running in flash but not
    in Mediaserver).
    if i remove the _ symbol, it works fine,
    Does anyone know why it happens

    You can pass an init object as the 4th argument to load
    movie.
    Basically this takes the form of braces encapsulating a comma
    seperated list of property_name colon property_value
    eg {_x: xpos, _y:ypos}
    _root.attachMovie(_global.cl_Name, _global.cl_Name,
    _global.clipHeight++, {
    _x: xValue,
    _y: yValue
    Happy Flashing

  • 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 ?

Maybe you are looking for

  • SSRS line chart showing premium change pct over time

    Hi, I have an SSRS report sitting over a cube.  I'm building a Line chart to show premium change over time by producer (there are currently 6 producers).  I have the Producer Name, Quarter/Year, and Premium amt. I want to have the premium line trend

  • Restricting length of file name of the file to be uploaded in file browse.

    Hi, I have got a file browse item. When the file name is more than 74 characters, it goes to an error page. Can this be avoided? To prevent this, I tried using a javascript function doSubmitWithProgress() if (document.getElementById('P202_FILE_INPUT'

  • Graph showing an extra plot in cursor palette

    Hi, I have an XY graph with many plots. The graph is showing an extra plot in the cursor palette. I have 9 plots.In plot legend palette its showing the correct plots only. But in the cursor palette it showing an extra plot with name plot9. I have giv

  • How do I import my IE6 favorite list to Fire Fox bookmark list???

    I just downloaded the newest version of Fire Fox to my desk top. It did not recognize my list of favorite from IE 6. Do I have to manually reinstall all of these or is there a way to import them in mass. The Fire Fox browser is much faster than my ol

  • Windows Swap For CS5 to Mac Leopard Operating System

    I have been running cs5 on an imac 27 with parallels in Windows 7. It has been cumbersome. So, I ordered cs5 as part of the adobe swap program so that I could run it exclusively on the mac platform. I no longer need to use Windows. The problem is tha