Is "Movie Export" a PNG Sequence for movies with ActionScript animations in Flash CS4?

I was wondering if there is a way to use "Export Movie" as a "PNG Sequence" to work in movies where objects are animated using ActionScript. Exporting how it works is just a dandy for normal animation, but it does not work for my current project. Basically, I create images using math, and I want to be able to export the result as png for use in other programs such as photoshop; but since images are created using actionscript, an empty image is simply displayed for export. Can I just take a screenshot of the result and tediously delete all the transparent areas with the wand tool? Someone please tell me there is a better way; thank you

+3
source share
5 answers

Since Flash CS3 you can export ActionScript animations / shapes as quicktime.

  • Go to File> Export Movie> Quicktime
  • In the Quicktime export settings, select When the time expires instead of When the last frame is reached .
  • Tick Ignore scene color (generate alpha channel) .

You should be able to import the Quicktime movie into Photoshop Extended, which, since the CS3 version has a timeline ( Window> Animation ). CS4 has a Video workspace that should help.

I think this is the easiest way.

If you want to stick with more code, you can try Lee Felarca SimpleFLVWriter (it's a bit outdated, so check the test first) or make your swf into an AIR application and use PNGEcoder from Adobe AS3CoreLib .

Could you post your video on vimeo and share the link (I want to see ^ _ ^)?

Goodluck, George

+4
source

Just released an AIR application to export SWF to PNG sequence: http://swfrenderer.kurst.co.uk/ - hope this helps ...

+2
source

As far as I know, when exporting a movie clip, no actioncript will be launched, it will display only all frames and their (static) content.

I really don't know if this can be done, and your solution for screenshots seems the only one ...

+1
source

Use the Socket ActionScript class. Take a picture of the scene (using the BitmapData class) and send it to another script running on your computer through the socket, where the image is saved. I should have used Python like this, and it worked perfectly. For animation, you may not get the best frame rate. But that should be fine, as long as the animation is time-independent.

An example of how you do this (untested):

var sock:Socket = new Socket(yourIP, somePort); var drawRect:Rectangle = new Rectangle(0, 0, 550, 400); var bmp:BitmapData = new BitmapData(drawRect.width, drawRect.height, true, 0x00000000); bmp.draw(stage, null, null, null, drawRect); var pixels:ByteArray = bmp.getPixels(drawRect); for each (var pixel in pixels) { sock.writeUnsignedInt(pixel); } 

Note that you may need to put the last fragment in the "connect" event. And also note that I'm still migrating to AS3, so some of them might be deprecated.

+1
source

Here is a free tool to use, very good. http://swfrenderer.kurst.co.uk/

It can convert any swf sequence to png. ADVANTAGES:

  • The quicktime method has a problem by default using Multiple with a dark background.
  • You do not need to deal with any internal file, for example .mov.
0
source

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


All Articles