Java的Flash解析、生成器 jActionScript

码农软件 · 软件分类 · Flash开发包 · 2019-04-04 06:13:00

软件介绍

jActionScript 是一个使用了 JavaSWF2 的 Flash 解析器和生成器。提供了一个基于对象模型的 ActionScript 字节码,并提供了 ActionScript 字节码统计工具。

示例代码

public class LinkExtractor {
public static void main(String[] args) throws IOException {
GetUrlStackListener l = new GetUrlStackListener();
SimpleStackSimulator v = new SimpleStackSimulator(l);
SWFActionExtract extract = new SWFActionExtract(v);
TagParser parser = new TagParser(extract);
SWFReader reader = new SWFReader(parser, args[0]);
reader.readFile();
}

private static class GetUrlStackListener extends NullStackListener {
public void visitGET_URL2(GetURL2Action action,
Operand target, Operand url)
{
if (url.knownValue()) {
System.out.println("GET_URL2: "+url.getValue());
} else {
System.out.println("GET_URL2: (unknown)");
}
}
public void visitGET_URL(GetURLAction action) {
System.out.println("GET_URL: "+action.getURL());
}
}
}

本文地址:https://codercto.com/soft/d/2812.html

Structure and Interpretation of Computer Programs - 2nd Edition

Structure and Interpretation of Computer Programs - 2nd Edition

Harold Abelson、Gerald Jay Sussman / The MIT Press / 1996-7-25 / USD 145.56

Structure and Interpretation of Computer Programs has had a dramatic impact on computer science curricula over the past decade. This long-awaited revision contains changes throughout the text. Ther......一起来看看 《Structure and Interpretation of Computer Programs - 2nd Edition 》 这本书的介绍吧!

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换