PHP-KeyCodes

Flash buttons

Using Flash buttons ....

If you are creating buttons by hand and you want to use Flash, you can easily create single item purchase buttons.

Single item purchase buttons

Both of the following will post the required data for PayPal.

1. Creating a buy button as part of the main time line

For a button called 'buy_btn2' :

//***************************************************
buy_btn2.onRelease = function() {
	item_number = "item2";
	getURL("http://www.yourservername.com/phpkeycodes/ipn/process.php", "_self", "POST");
};
// the url is http://www.yourservername.com/phpkeycodes/ipn/process.php<
//assuming that you have installed PHP-KeyCodes at the
//root of your web site in a folder called 'phpkeycodes'.
// The "item2" value is the item_number for the product you
// wish to create the button for.  This is the value that you
// gave the item in the Products display of the PHP-KeyCodes
// admin pages.
//***************************************************

2. Creating a buy button linked to the button code

//***************************************************
on (release) {
	item_number = "item1";
	getURL("http://www.yourservername.com/phpkeycodes/ipn/process.php", "_self", "POST");
};
// the url is http://www.yourservername.com/phpkeycodes/ipn/process.php
// assuming that you have installed PHP-KeyCodes at the root
// of your web site in a folder called 'phpkeycodes'.
// The "item1" value is the item_number for the product you wish
// to create the button for. This is the value that you gave
// the item in the Products display of the admin pages.

Clicking on a buy now button will all that item to be purchased from PayPal.

The above example can be downloaded by clicking here.


Find out more

Pricing : PHP-KeyCodes costs $45 U.S. Dollars. Click here to go to the purchase page for further details.

Demo : To view an on-line demo illustrating the admin pages click here.
The demo is live and you may purchase items to see how the system works. Items are $0.01 in value.

Enquiries : If you have any questions about the product, go to the contacts page by clicking here.