views:

24

answers:

1

In short I'm developing a 'widget' in flash that I would like to implement paypal into but I'm not sure how I could do server checks from the flash file.

What I want to do is when a user clicks a button I want to send form data from the flash file to a php script then send data back to the flash file. Keep in mind that the flash app is OFF SITE and will be written in AS3.

I'm having a hard time finding any good material on this subject so I figured I would ask.

Thanks

A: 

You can use URLLoader to load text from a server side script. You can pass data along as GET, ie:

http://www.example.com/paypal.php?user=12345&pay=34.56

. By off site, do you mean it will be used by other pages, or that it will be hosted on the other pages' server? The first does not pose a problem if the flash file is hosted on the same domain as the serverside script. But if the flash file is hosted on another server, then you might run into trouble. You need to create a cross-domain policy file to fix this problem.

Marius
It will be off-server
CodeJustin.com