flash to php to jpeg/gif?
I have a flash swf. It lets people draw cool things (just a pen tool). Now I want to have them be able to export it somehow to a website so they can view what they开发者_开发百科've made online.
Whats the best way to do this?
I know as3 and php right now, but do I need anything else?
First you need to make sure your drawing is a BitmapData (using draw if it's a shape), then you can encode it to JPEG or PNG, and then send it to PHP using something like this: Save ByteArray to file with PHP
There are a few GIF encoders also, but I wouldn't recommend them for drawings.
精彩评论