如何从SWF文件提取图像? [英] How to extract images from a SWF file?

查看:79
本文介绍了如何从SWF文件提取图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在SWF文件中有一个Flash对象.它包含我需要提取的图像,因此我可以将其直接用于不支持Flash的设备.

I have a Flash object in a SWF file. It contains an image that I need to extract, so I can use it directly for devices not supporting Flash.

如何从SWF中提取图像?我应该使用什么工具?

How can I extract the image from the SWF? What tools should I use?

推荐答案

这取决于情况,在任何情况下,您都需要一种方法来识别文件内的图像,也就是符号.

Well it depends on the situation, at any case you'll need a way to identify that image inside the file aka a symbol.

情况1.嵌入

[Embed(source="assets/library.swf", symbol="AImage")]
[Bindable]
public var AImage:Class;

情况2.运行时

(一旦加载程序加载了swf源文件,就会执行此代码)

(this code is executed once the loader has loaded your swf source file)

loader.contentLoaderInfo.applicationDomain.getDefinition("AImage");

希望有帮助

这篇关于如何从SWF文件提取图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆