开发者

Exporting *.png sequence from *.fla with C++

开发者 https://www.devze.com 2023-02-16 16:54 出处:网络
I need an animation in my program. My designer draws animation in Flash and provides me with *.fla file. All I need is to grab 30-40 PNGs from this file and store them within my internal storage.

I need an animation in my program. My designer draws animation in Flash and provides me with *.fla file. All I need is to grab 30-40 PNGs from this file and store them within my internal storage.

Is it possible grab resources from *.fla with C++ ? Pr开发者_StackOverflow社区obably, some Adobe OLE objects can help?

Please, advice.

Thanks in advance.


If I asked an artist to make me an icon I wouldn't expect to need to write code to convert a .3DS model into a usable icon format.

You can save yourself a lot of time and hassle by having your designer use File->Export and give you PNGs of the layers and frames instead of a .FLA file if that's the format you require for your implementation.

If that's not possible for some reason then you can probably find a flash decompiler that has a command line option which you could launch from your program to extract assets as part of your loading sequence but that is generally frowned upon because this is not the intended use of the proprietary format for .swf/.fla anymore than you should design applications to extract source code from a binary executable.


Assuming

  1. You are using CS5
  2. The assets used internally in the FLA are already PNG's as you want them to be.

Then simply get the FLA saved as a XFL file, and you will be able to grab them from the library folder ( but then why not just get them to mail you the pngs ? )

So if for some reason you can only get access to the fla and not the designer, then you can do it programatically by renaming the fla to .zip, extracting.. and you have the XFL format.

0

精彩评论

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