views:

84

answers:

2

Just curious, can flash take each frame and export it out as a image ? In my case, I want to create sprite images for a flashdevelop project using blitting. Of course I know there is a solution for this. like copy and paste each shape into a image editor such as photoshop and turn them into png's. But I am just seeing if there is a simpler means of doing so.

+5  A: 

Check out BitmapData.draw(). You can listen to frame events and programmatically spit out bitmaps from within Flash (draw the stage onto a bitmap, lather, rinse, repeat). Combine this with a PNG encoder and you can automate the entire process very easily.

zenazn
+1  A: 

there is an export function with flash too, so if you animate or draw your objects to stage you can export it as in image sequence (file->export->export movie-> jpeg, GIF, png etc).

shortstick