Display each frame as one image

Just curious if it can take every frame and export it as an image? In my case, I want to create sprites for the flashdevelop project using blitting. Of course, I know that there is a solution for this. for example, copy and paste each shape into an image editor, such as Photoshop, and turn them into png. But I just see if there are easier ways to do this.

+4
source share
2 answers

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

+7
source

there is a export function with a flash, so if you animate or draw your objects on the scene, you can export it as in a sequence of images (file-> export-> export movie-> jpeg, GIF, png, etc.).

+3
source

Source: https://habr.com/ru/post/1301524/


All Articles