# \[AS2.0\] PayPal Link Via a Flash Button

**URL:** <https://forum.kirupa.com/t/as2-0-paypal-link-via-a-flash-button/257098>\
**Category:** flash\
**Created:** [April 10, 2008, 5:07am UTC](https://forum.kirupa.com/t/as2-0-paypal-link-via-a-flash-button/257098 "2008-04-10T05:07:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tailz](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/tailz/32/7262_2.png) [@tailz](https://forum.kirupa.com/u/tailz)\
**Post date:** [April 10, 2008, 5:07am UTC](https://forum.kirupa.com/t/as2-0-paypal-link-via-a-flash-button/257098/1 "2008-04-10T05:07:43Z")

</div>

Hello,  
I am trying to make a button in Flash (that uses ActionScript 2.0) that will load the PayPal web site using the code provided by paypal. I choped up the PayPal button to get the follow that I thought was correct:

```auto
 
    var cmd:String = "_s-xclick";
    var encrypted:String = "great-big-long-string-of-numbers";
 
on (release) {
 getURL("https://www.paypal.com/cgi-bin/webscr", "_parent", "POST");
}

```

Am I heading in the right direction?

Or if anyone knows a simpler way, please let me know as ActionScript makes my poor head hurt.
