Flash MX, ScrollPane, Sending variable out

Posted on 2004-11-29
Last Modified: 2010-04-03
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.

Question by:COwebmaster
    LVL 27

    Accepted Solution

    From the client side there's not difference if you are uising net, cfm or amfphp:

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

    remote_connection = NetServices.createGatewayConnection();

    // === in your form
    my_service = _root.remote_connection.getService("");
    function sendForm()
          var responder = new Object();
          responder.onResult = function(result)
                trace("SERVER RESPONSE " + result);
          my_service.nameOfRemotService(responder, name_txt.text, phone_txt.text, age_txt.text);
    your_send_button.onRelease = function()

    Author Comment

    Thanks, COBOLdinosaur.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Suggested Solutions

    There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
    This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
    The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
    The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now