A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Exporting a png and sending it to Zazzle

  1. #1
    Junior Member
    Join Date
    Jul 2010
    Posts
    15

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

  2. #2
    Will moderate for beer
    Join Date
    Apr 2007
    Location
    Austin, TX
    Posts
    6,801
    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.

  3. #3
    Junior Member
    Join Date
    Jul 2010
    Posts
    15
    Drat, I don't understand as much of that as I hoped I would! I'm not sure why the link didn't work. Might have been cropped by the forum... here's a shortened version: http://bit.ly/ciX0fl

    I'm downloading as3corelib-.93.zip now, hopefully what you said will make more sense then. I'll give it my best shot, I guess worst comes to worst I can post it as a project somewhere and pay someone who knows what they're doing.

    Thank you v much for pointing me in the right direction!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center