开发者

flash to php to jpeg/gif?

开发者 https://www.devze.com 2023-02-06 07:07 出处:网络
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.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消