Skip to main content
Inspiring
July 3, 2008
Question

Sending Form Variables via AS3

  • July 3, 2008
  • 1 reply
  • 420 views
I'm trying to write the AS3 code to send information to PayPal when someone clicks on a "buy" link. The code I have written so far is attached. Basically, I have a button on the stage (buy_btn). I've set up an event listener for it that runs a function called "buycd" when it is clicked. I need to send two variables: "cmd" and "encrypted." Flash says there are no errors in the code and the file plays fine. But when I click on the button I get this error:

Error opening URL 'https://www.paypal.com'
Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: https://www.paypal.com
at facewithpaypal_fla::MainTimeline/frame1()

Any advice or help as to what I'm doing wrong would be greatly appreciated. Thanks very much.


This topic has been closed for replies.

1 reply

backpagesAuthor
Inspiring
July 3, 2008
OK, I rewrote the code slightly (see attached) and it now gets me to the page OK, but doesn't seem to take along the variables. Any help would be greatly appreciated. Thank you very much.
Participant
July 9, 2008
This was driving me crazy, too. For me, the behavior resolved itself once I uploaded my SWF to the actual web server. Have you tried that yet? I realzied (after an hour of frustratiion) that the faulty GET behavior was only occuring in the Flash test (Control > Test Scene) environment.