Flash Sample
This is a simple subscribe and unsubscribe form showing you how to use the API to add and remove a subscriber to your list via Flash. The sample file includes an .fla file and ActionScript 2 class file that needs to be copied to the same location to make the .fla compile properly.
Please keep in mind that using the API from Flash is not the most secure approach you can take because your API key and List ID are stored in the swf and therefore distributed on the subscriber's computer.
A big thanks goes to Oliver List from Less Rain for putting this together for us.
Download the AS2 sample (zip format - 148kb)
NEW: Action Script 3 implementation
Thanks to MailBuild customer Kuljit Athwal we can now offer an AS3 API sample in addition to the AS2 above.
This implementation is not complete - it covers the subscribe, subscribe with custom fields and unsubscribe methods. You may be able to follow the examples and create some for the other API methods. Also included in the zip file is the latest version of amfphp which is used for the method calls.
Download the AS3 sample (zip format - 516kb)