|
-
Exporting a png and sending it to Zazzle
For those who haven't heard about it before; Zazzle is a site that lets you upload your own pictures and buy/sell them on merchandise: www.zazzle.com
They have some API where you can dynamically insert images into the products: www.zazzle.com/api
I'm looking for some help to get this working using Flash. I know how to make standalone Flash builders and Zazzle products with templates to accept the images... but it's the bit in the middle that's got me stumped.
I'm guessing I need to use the AS3 to export a movieclip as a png and then send it to some sort of php, which in turn sends it along to Zazzle. I downloaded the png exporter on http://www.flashiology.com/component...nscript-3.html, but I can't quite get my head round it.
I've never done anything like this before, but I'm very willing to learn (I'm determined to get this working!)
If anyone can give me some pointers on exporting pngs (i need the transparency intact) and/or sending it to php and Zazzle, I'd really appreciate it.
-
Your png exporter link isn't working. But I don't see why you'd need anything more than the PNGEncoder which is in as3corelib. You'd take the ByteArray produced and send it to some intermediate server-side page, or directly to zazzle if they have a compatible crossdomain. You may also be able to Base64 encode the ByteArray, pass it to javascript via ExternalInterface, and send the data to zazzle via ajax, but I haven't looked at the zazzle api yet to see what they support.
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|