00:00
00:00
Newgrounds Background Image Theme

ArkihamVA just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

AS: PayPal button

4,471 Views | 20 Replies
New Topic Respond to this Topic

AS: PayPal button 2006-01-20 15:14:42


AS: Main

So, would you like to add a Paypal button to your animations so other people could support your work?

Well, is easier than you thought :)

The button
Let's make a PayPal button first. You could even use the PayPal logo for it if you want, or make one by yourself. Just keep in mind that you have to let know to the people that pushing that button will send them to PayPal so they can donate you some money.

Add the graphic (Or draw it) and then convert it into a symbol (F8) In this case will use a Button symbol.

The ActionScript
Now, we'll add it an ActionScript so when the user presses it, it will sennd him in a blank page to the PayPal page.

Note: Keep in mind that if you send the user to the PayPal page in the same window, your animation will stop and the page will open with the size of the page where you were looking at the animation. So, the best you can do is send him in a new page (Blank)

This is the ActionScript that the button will have:

on (release) {
getURL("http://www.urlhere.com", "_blank");
}

As you can see, I left the url as 'urlhere.com' because I'm going to explain how to link it to your PayPal account.

The link (URL)

The link for it will be something like this:

PayPal link

As you can see, the link is so long that I had to add the HTML tags so it didn't get screwed here.

All what you have to change it is this:

Instead of 'Ozcar' use your user name
Instead of 'newgroounds' use your host domain
If your webmail provider ends in 'net' change the 'com' too.

Well, my e-mail is ozcar@newgrounds.com
So I left it as: ozcar%40newgrounds%2ecom

%40 will be the @
%2e is the 'dot' ( . )

So, if your e-mail is: newgroundsfan293@yahoo.com
Change the url for: newgroundsfan293%40yahoo%2ecom

In this case, the full URL for newgroundsfan293@yahoo.com PayPal link would be like this.

Add your URL to the ActionScript and you're done :)

If you have questions, feel free to ask. (And Donate me something if you want :)

Response to AS: PayPal button 2006-01-20 15:17:28


At 1/20/06 03:14 PM, Ozcar wrote: stuff.

rather useful, thanx - wat happed to this post a second ago? was it deleted?

Response to AS: PayPal button 2006-01-20 15:18:49


At 1/20/06 03:17 PM, Phyruss wrote:
At 1/20/06 03:14 PM, Ozcar wrote: stuff.
rather useful, thanx - wat happed to this post a second ago? was it deleted?

It had 2 mistakes with the links, so I deleted it and posted it fixed again :)

Response to AS: PayPal button 2006-01-20 15:18:51


i dont anyone here make any work someone wanna support with money!
how come you deleted the other topic?

Response to AS: PayPal button 2006-01-20 15:18:54


cool, thanks for that, that may come in handy


BBS Signature

Response to AS: PayPal button 2006-01-20 15:19:48


You really just paste the adress of your PayPal into the 'getURL' function, it's not worth explaining.


BBS Signature

Response to AS: PayPal button 2006-01-20 15:20:03


Hehe. Kinda narrow subject, but it sure as hell needed explanation =)
Nice


BBS Signature

Response to AS: PayPal button 2006-01-20 15:24:43


if only you could do this with google ADs

Response to AS: PayPal button 2006-01-20 15:28:45


At 1/20/06 03:18 PM, Creeepy wrote: i dont anyone here make any work someone wanna support with money!
how come you deleted the other topic?

Because I'm a moderator :)

At 1/20/06 03:19 PM, -Gust- wrote: You really just paste the adress of your PayPal into the 'getURL' function, it's not worth explaining.

It is, smart ass...

At 1/20/06 03:24 PM, Inglor wrote: if only you could do this with google ADs

Hmmm...haven't tried so far...

Response to AS: PayPal button 2006-01-20 21:57:56


cool this look handy

Response to AS: PayPal button 2006-01-20 22:34:43


At 1/20/06 03:14 PM, Ozcar wrote: A lot of useful stiff

Wow... now its time to make money in my flashes! Mwahahahaha! Im sorry.. Its late and I am tired. That is pretty useful, Ill bookmark this.


wew

Response to AS: PayPal button 2006-01-20 23:22:11


I like, to bad I dont have a paypall acount, I could set up one of these on my site, so it would be static. I like Flash more than static.

Response to AS: PayPal button 2006-01-21 00:47:50


At 1/20/06 10:34 PM, LordTrunks wrote: Wow... now its time to make money in my flashes! Mwahahahaha! Im sorry.. Its late and I am tired. That is pretty useful, Ill bookmark this.

Remember to bookmark the AS: Main topic too :)

At 1/20/06 11:22 PM, DarkScythes wrote: I like, to bad I dont have a paypall acount,

Make one. It's for free :)

I could set up one of these on my site, so it would be static. I like Flash more than static.

Well, that's what makes Flash great, isn;t it? :)

Response to AS: PayPal button 2006-01-21 01:15:59


wonderful tutorial, you have done your homework!

Response to AS: PayPal button 2006-01-21 01:41:07


This couldn't have anything to do with lu, could it?


BBS Signature

Response to AS: PayPal button 2006-01-21 03:57:19


At 1/20/06 03:24 PM, Inglor wrote: if only you could do this with google ADs

LOL. Armor Games wouldnt have a site if you could.


BBS Signature

Response to AS: PayPal button 2006-08-27 15:40:01


Hi, i was reading into it and it says;

Benefits
Save time and money collecting donations with PayPal:

* Easy to implement - no CGI scripting necessary
* No up-front costs - you'll have the same low fee schedule used when you receive other PayPal payments
* Collect with ease - PayPal maintains detailed transaction records on our website
* Freedom for your donors - donors can choose the amount of their secure donation, or you can set a fixed amount

Does this mean it does cost? and if so, how much?

Thanks

Response to AS: PayPal button 2006-08-27 15:42:25


This is useful. But you shouldn't have called it the paypal button tutorial, because its basically just a button that links to the web. But still, I like it. Good job.

Response to AS: PayPal button 2006-08-27 15:45:44


At 8/27/06 03:40 PM, Andy_Smithy wrote: Hi, i was reading into it and it says;

Benefits
Save time and money collecting donations with PayPal:

* Easy to implement - no CGI scripting necessary
* No up-front costs - you'll have the same low fee schedule used when you receive other PayPal payments
* Collect with ease - PayPal maintains detailed transaction records on our website
* Freedom for your donors - donors can choose the amount of their secure donation, or you can set a fixed amount

Does this mean it does cost? and if so, how much?

Thanks

No up-front costs, No up-front costs, No up-front costs, No up-front costs, No up-front costs.
It's FREE.

Response to AS: PayPal button 2006-08-27 15:48:39


Awesome!

I like the idea, i dont use paypal but hell, it will be good for the ppl that uses that

Response to AS: PayPal button 2007-04-19 11:54:45


Erm, just a small note.

Maybe you could also mention about changing to other regional domains, like .co.uk or .de

Most would figure that one out for themselves, but also, you could mention about changing the "USD" into "GBP" or any of the other currency codes paypal supports, if you so wish.

Good work, though. Very helpful :)