# Load variable from ASP (get variable) as 2

**URL:** <https://forum.kirupa.com/t/load-variable-from-asp-get-variable-as-2/248339>\
**Category:** Uncategorized\
**Created:** [January 7, 2008, 9:28am UTC](https://forum.kirupa.com/t/load-variable-from-asp-get-variable-as-2/248339 "2008-01-07T09:28:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![smyls](https://avatars.discourse-cdn.com/v4/letter/s/dc4da7/32.png) [@smyls](https://forum.kirupa.com/u/smyls)\
**Post date:** [January 7, 2008, 9:28am UTC](https://forum.kirupa.com/t/load-variable-from-asp-get-variable-as-2/248339/1 "2008-01-07T09:28:04Z")

</div>

Hi flash friends,

Im trying to make a SWF that sends some variables (query string) to ASP. Then the ASPfile is responding with “response.write”. Everything works great except i dont know how to get the asp-answer back into flash again.

I got a few variables that’s added in a movieclip called form, then use this command on the button.

in the flash button, (on release)

```auto
success = 0;
form.loadVariables ("http://xxxx/Code.asp", "GET")

```

in Code.asp

```auto
response.write "success=1"

```

Then when i try this command it seems that the success variable dosnt work.

```auto
      if (success == 1)
   {
            gotoAndStop ("success") 
  } 

```

I have a feeling (i hope) that the answer is quite easy so maybe someone could be nice and help me out.  
Thanks for reading/helping!
