• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 226
  • Last Modified:

Flash MX, ScrollPane, Sending variable out

I have a scrollpane with a form inside it.  I want to send out the form elements to a .cfm file, then trigger either a "Thank you" or "Server down" message back to the user in the same flash movie (but not inside the scrollpane, but still in the flash movie).  I haven't found any material on that on the NET and the help menu doesn't "help" either.

Thanks.
0
COwebmaster
Asked:
COwebmaster
1 Solution
 
negatyveCommented:
From the client side there's not difference if you are uising net, cfm or amfphp:

// === in the first frame of your movie
#include "NetServices.as"

NetServices.setDefaultGatewayUrl("http://localhost/flashservices/gateway");
remote_connection = NetServices.createGatewayConnection();

// === in your form
my_service = _root.remote_connection.getService("path.to.service");
function sendForm()
{
      var responder = new Object();
      responder.onResult = function(result)
      {
            trace("SERVER RESPONSE " + result);
            _root.someOtherFunction(result);
      };
      my_service.nameOfRemotService(responder, name_txt.text, phone_txt.text, age_txt.text);
}
your_send_button.onRelease = function()
{
      sendForm();
}
0
 
COwebmasterAuthor Commented:
Thanks, COBOLdinosaur.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now