Be a Supporter!

AS: PayPal button

  • 3,327 Views
  • 20 Replies
New Topic Respond to this Topic
Ozcar
Ozcar
  • Member since: May. 12, 2002
  • Offline.
Forum Stats
Member
Level 32
Blank Slate
AS: PayPal button 2006-01-20 15:14:42 Reply

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 :)

Phyruss
Phyruss
  • Member since: Dec. 29, 2005
  • Offline.
Forum Stats
Member
Level 07
Blank Slate
Response to AS: PayPal button 2006-01-20 15:17:28 Reply

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

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

Ozcar
Ozcar
  • Member since: May. 12, 2002
  • Offline.
Forum Stats
Member
Level 32
Blank Slate
Response to AS: PayPal button 2006-01-20 15:18:49 Reply

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 :)

Creepy
Creepy
  • Member since: Nov. 28, 2004
  • Offline.
Forum Stats
Member
Level 07
Blank Slate
Response to AS: PayPal button 2006-01-20 15:18:51 Reply

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

jackash101
jackash101
  • Member since: Sep. 10, 2005
  • Offline.
Forum Stats
Member
Level 17
Blank Slate
Response to AS: PayPal button 2006-01-20 15:18:54 Reply

cool, thanks for that, that may come in handy


BBS Signature
GustTheASGuy
GustTheASGuy
  • Member since: Nov. 2, 2005
  • Offline.
Forum Stats
Member
Level 08
Blank Slate
Response to AS: PayPal button 2006-01-20 15:19:48 Reply

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


BBS Signature
Rantzien
Rantzien
  • Member since: Jan. 27, 2005
  • Offline.
Forum Stats
Member
Level 15
Blank Slate
Response to AS: PayPal button 2006-01-20 15:20:03 Reply

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


BBS Signature
Inglor
Inglor
  • Member since: Jan. 26, 2003
  • Offline.
Forum Stats
Member
Level 17
Blank Slate
Response to AS: PayPal button 2006-01-20 15:24:43 Reply

if only you could do this with google ADs

Ozcar
Ozcar
  • Member since: May. 12, 2002
  • Offline.
Forum Stats
Member
Level 32
Blank Slate
Response to AS: PayPal button 2006-01-20 15:28:45 Reply

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...

shazwoogle
shazwoogle
  • Member since: Sep. 27, 2004
  • Offline.
Forum Stats
Member
Level 11
Blank Slate
Response to AS: PayPal button 2006-01-20 21:57:56 Reply

cool this look handy

Trunks
Trunks
  • Member since: Jul. 31, 2005
  • Offline.
Forum Stats
Member
Level 22
Musician
Response to AS: PayPal button 2006-01-20 22:34:43 Reply

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.


Web developer, software engineer, musician, all-around nerd.

DarkScythes
DarkScythes
  • Member since: May. 20, 2005
  • Offline.
Forum Stats
Member
Level 10
Blank Slate
Response to AS: PayPal button 2006-01-20 23:22:11 Reply

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.

Ozcar
Ozcar
  • Member since: May. 12, 2002
  • Offline.
Forum Stats
Member
Level 32
Blank Slate
Response to AS: PayPal button 2006-01-21 00:47:50 Reply

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? :)

ELFERRETO
ELFERRETO
  • Member since: Dec. 3, 2004
  • Offline.
Forum Stats
Member
Level 12
Blank Slate
Response to AS: PayPal button 2006-01-21 01:15:59 Reply

wonderful tutorial, you have done your homework!

NegativeONE
NegativeONE
  • Member since: Feb. 15, 2003
  • Offline.
Forum Stats
Member
Level 49
Game Developer
Response to AS: PayPal button 2006-01-21 01:41:07 Reply

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


BBS Signature
PiGPEN
PiGPEN
  • Member since: May. 11, 2001
  • Offline.
Forum Stats
Member
Level 22
Animator
Response to AS: PayPal button 2006-01-21 03:57:19 Reply

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
Andy-Smithy
Andy-Smithy
  • Member since: Jul. 27, 2006
  • Offline.
Forum Stats
Member
Level 09
Blank Slate
Response to AS: PayPal button 2006-08-27 15:40:01 Reply

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

Evan
Evan
  • Member since: Nov. 15, 2004
  • Offline.
Forum Stats
Member
Level 13
Blank Slate
Response to AS: PayPal button 2006-08-27 15:42:25 Reply

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.

Kenney
Kenney
  • Member since: Mar. 16, 2002
  • Offline.
Forum Stats
Member
Level 20
Game Developer
Response to AS: PayPal button 2006-08-27 15:45:44 Reply

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.

tomylee
tomylee
  • Member since: Dec. 17, 2004
  • Offline.
Forum Stats
Member
Level 28
Blank Slate
Response to AS: PayPal button 2006-08-27 15:48:39 Reply

Awesome!

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

Leonardo-Da-Finchy
Leonardo-Da-Finchy
  • Member since: Mar. 10, 2006
  • Offline.
Forum Stats
Member
Level 20
Blank Slate
Response to AS: PayPal button 2007-04-19 11:54:45 Reply

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 :)