如何从swf文件中提取图像? [英] How to extract images from swf file?
本文介绍了如何从swf文件中提取图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
解决方案
那么这取决于情况,无论如何,您需要一种方法来识别图片里面的文件又名符号。
案例1.嵌入
[Embed(source =assets / library.swf,symbol =AImage)]
[Bindable]
public var AImage:Class;
情况2.运行时间
代码一旦加载器已经加载你的swf源文件就执行)。
希望有帮助
I have a flash object (with an swf extension). The flash object contains an image which I need to extract and use instead of the swf file..especially for devices not supporting flash. How can we extract the image from an swf (flash) file? What tools can 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.
Case 1. Embed
[Embed(source="assets/library.swf", symbol="AImage")]
[Bindable]
public var AImage:Class;
Case 2. Runtime
(this code is executed once the loader has loaded your swf source file)
loader.contentLoaderInfo.applicationDomain.getDefinition("AImage");
Hope it helps
这篇关于如何从swf文件中提取图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文