dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Sending Variables out of Flash through Load Vars

  1. #1

    Sending Variables out of Flash through Load Vars

    Hi,
    I'm currently using Flash MX 2004 and I need to send variables out of flash. I gotten it to work with the old loadVarbalesNum(); command, but I want to use the Load Vars

    Here's my as, does anyone have any ideas what is going wrong...

    code:

    if (strEmail eq "") {
    gotoAndPlay('noEmail');
    }
    if (strName eq ""){
    gotoAndPlay('noName');
    }
    else{
    var myLV = new LoadVars();
    function addEmail() {
    myLV.load("emailListThanks.asp");
    myLV.onLoad = function(success) {
    if (success) {
    gotoAndPlay('send');
    }else {
    gotoAndPlay('error');
    }
    };
    }
    addEmail();
    }



    BTW, I know the page that excepts the variables is working, it worked through an HTML form.

    Any thoughts, or where to find the answer would be a huge help.

    Thanks.
    Last edited by sjcallan; 01-26-2005 at 11:32 AM.

  2. #2
    Denied ACCESSORIES
    Join Date
    Dec 2000
    Location
    Rio de Janeiro
    Posts
    208

    Re: Sending Variables out of Flash through Load Vars

    Originally posted by sjcallan
    Hi,
    I'm currently using Flash MX 2004 and I need to send variables out of flash. I gotten it to work with the old loadVarbalesNum(); command, but I want to use the Load Vars

    Here's my as, does anyone have any ideas what is going wrong...

    code:

    if (strEmail eq "") {
    gotoAndPlay('noEmail');
    }
    if (strName eq ""){
    gotoAndPlay('noName');
    }
    else{
    var myLV = new LoadVars();
    function addEmail() {
    myLV.load("emailListThanks.asp");
    myLV.onLoad = function(success) {
    if (success) {
    gotoAndPlay('send');
    }else {
    gotoAndPlay('error');
    }
    };
    }
    addEmail();
    }



    BTW, I know the page that excepts the variables is working, it worked through an HTML form.

    Any thoughts, or where to find the answer would be a huge help.

    Thank.
    ..,,;:'""':;,,..ASTRO

  3. #3
    Denied ACCESSORIES
    Join Date
    Dec 2000
    Location
    Rio de Janeiro
    Posts
    208

    Re: Re: Sending Variables out of Flash through Load Vars

    ..,,;:'""':;,,..ASTRO

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center