PDA

View Full Version : GET sends EVERYTHING!


Caravaggio
01-14-2003, 03:02 PM
I've been succesfully sending information to an ASP using a GET method on release of a button.

Everything works just fine, but I noticed that the GET method will send EVERY variable that is made in the .swf. While this doesn't bother me much, I know that GET can only send a finite amount of information and I suppose I'd just like to NOT send all the variables.

Is there a way to 'undeclare' variables to prevent them from being sent in the URL via the GET method?

I suppose if I could figure out how the POST method worked, then that may help me. Any good links to the functional difference between the two? Scanned both the Flash&Dreamweaver Help documents and it didn't quite clarify.


Thanks.

catbert303
01-14-2003, 03:09 PM
you can create a movie clip that holds just the variables you want to send and then from within the clip use

on (release) {
this.loadVariables("myScript.asp","GET");
}

to only send the variables contained in the clip.

to use post, the flash side of things is the same (except for switching the word POST for GET ;))

on your ASP page you would get hold of the variables sent using the post method with something like,

dim varName
varName = Request.form("variableNameFromFlash")

Caravaggio
01-14-2003, 03:11 PM
oooo.... very slick! I'll give it a shot!
THX!:D