Ask a Question related to Macromedia Flash Actionscript, Design and Development.
-
sneakyimp webforumsuser@macromedia.com #1
FURTHER DIFFICULTIES
ok...i must confess...this is all to create a PAYPAL button....i need to add an item to a shopping cart on PAYPAL.com. another problem has cropped up.
ADD is a reserved word in actionscript, so i can't properly ADD an item to my paypal shopping cart because code like this causes an error:
mySubmit = new LoadVars();
mySubmit.add = 1; //<----this line causes the problem
WHAT CAN I DO?? i will keep trying other methods, but things are looking pretty bleak.
sneakyimp webforumsuser@macromedia.com Guest
-
TextArea difficulties
Flex doesn't have an out-of-the-box component that does this. The Text field (not an input field) can grow as text is added to it. The only... -
Printing difficulties?!?
Hello, newbie here with a quick question. My GF has a Epson Stylus Photo 1290 that is fantastic! However we have recently been having an odd printing... -
New guy having difficulties
I can maximize an image window, but I can't seem to minimize the image window later. Is there a "minimize" button somewhere? Also, I cannot seem... -
Form Difficulties
I'm running Access 95 (is this too old of a version to get help with here? hope not). The first form I create is visible in the database windows.... -
Importing difficulties
On page 69 of the macromedia fireworks mx training from the source book that I am working with says I can import FreeHand 7, 8, 9, and 10 files as... -
sneakyimp webforumsuser@macromedia.com #2
aha! CRACKED IT
after much trial and error, i think i got it down :)
you can use 'array-style' referencing to create the lvars object. even though 'add' is a reserved word in ACTIONSCRIPT, you can still do this:
lvMySubmit["add]"=1;
this works...
// create variables to contain item data.
lvMySubmit = new LoadVars();
lvMySubmit.cmd = "_cart";
lvMySubmit.business = "foo@foo.net";
lvMySubmit.item_name = "1 Dozen Mens Left Handed Sport Gloves";
lvMySubmit.amount = "60.00";
lvMySubmit.no_note = "1";
lvMySubmit.cs = "1";
lvMySubmit.currency_code = "USD";
lvMySubmit.on0 = "Glove Size";
lvMySubmit.os0 = "Small";
lvMySubmit["add"]=1;
lvMySubmit.submit=1;
lvMySubmit.display=1;
lvMySubmit.send("https://www.paypal.com", "_self", "POST");
sneakyimp webforumsuser@macromedia.com Guest



Reply With Quote

