PDA

View Full Version : Passing Variables to asp accross domains


DCJENKINS777
07-22-2003, 10:15 PM
I have searched and found several post about passing varibles - but I need to pass variables from a flash file on one domain to an asp script on another.

I need to pass a few varibles from my clients flash cart - to his credit card proccessors additem.asp which is on a different domain.

I was successful in doing this locally but as soon as I post the sWF to the server it doesn't work - I read somewhere (and now can't find it) that flash will not allow varibables to be passed across domains. Is that true?

All I need to do is pass 4 varibles to the asp script

StoreID="storeidnumber"
Item_Description="decription of item"
Item_Price="price of item"
Item_Qty="how many"

I have a pretty good understanding of actionscripting but have not done much in CGI or PHP - the clients server doesn't support asp.

Can I pass the varibles to a script on the same server then have that script pass them to the asp on the cc proccessorrs domain? How

Here is what I am doing in the flash file & it works until I put it on the server. The other variables are declared earlier in the movie

**************************************************

if (Number(apricot)>0) {
vcsItemDescription = "Apricot";
vcsItemQty = Number(apricot);
loadVariablesNum("http://secure.todaysebiz.com/services/cart/additem.asp", "", "POST");

************************************************


Thanks

Don

CyanBlue
07-22-2003, 10:44 PM
Howdy... ;)

Try these threads...
http://www.actionscript.org/forums/showthread.php3?s=&threadid=21247
http://www.actionscript.org/forums/showthread.php3?s=&threadid=23173
http://www.actionscript.org/forums/showthread.php3?s=&threadid=24394
http://www.actionscript.org/forums/showthread.php3?s=&threadid=28351
http://www.actionscript.org/forums/showthread.php3?s=&threadid=29429

Timmee_3Styler
07-22-2003, 11:57 PM
hey cyanblue
do u have these threads stashed up somewhere or you pull off the little useful tool "search" ?

CyanBlue
07-23-2003, 12:32 AM
Yeah... I have them all hidden under my desk... :D

Go to the Flash MX forum and see the Sticky thread... :)

DCJENKINS777
07-23-2003, 12:46 AM
Something in one of the threads got me going - I noticed in a white paper that was linked in one of the threads - that the security restriction doesn't apply to getURL. Since I am only sending and not trying to get anything back - I switched to that from loadvariablesNum - and got it working.

Thanks

Don

http://download.macromedia.com/pub/flash/whitepapers/security.pdf