This commit is contained in:
Tobias Schneider 2012-04-18 20:49:50 +02:00
Родитель 55788de342
Коммит 8eddb96c36
3 изменённых файлов: 71 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,71 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>AS3 Tiger</title>
</head>
<body>
<div id="stage"></div>
<script src="../../src/swf/util.js"></script>
<script src="../../src/swf/swf.js"></script>
<script>
SWF.workerPath = "../../src/swf/worker.js";
</script>
<script src="../../src/swf/worker.js"></script>
<script src="../../src/swf/prototypes.js"></script>
<script src="../../src/swf/embed.js"></script>
<script src="../../src/swf/renderer.js"></script>
<script>
window.print = function (msg) {
console.log(msg);
};
var webShell = true;
</script>
<script src="../../src/avm2/DataView.js"></script>
<script src="../../src/avm2/util.js"></script>
<script>
var options = new OptionSet("option(s)");
var disassemble = options.register(new Option("disassemble", "d", false, "disassemble"));
var traceLevel = options.register(new Option("traceLevel", "t", 0, "trace level"));
</script>
<script src="../../src/avm2/constants.js"></script>
<script src="../../src/avm2/opcodes.js"></script>
<script src="../../src/avm2/parser.js"></script>
<script src="../../src/avm2/disassembler.js"></script>
<script src="../../src/avm2/analyze.js"></script>
<script src="../../src/avm2/compiler.js"></script>
<script src="../../src/avm2/native.js"></script>
<script src="../../src/avm2/runtime.js"></script>
<script src="../../src/avm2/interpreter.js"></script>
<script src="../../src/flash/events/EventDispatcher.js"></script>
<script src="../../src/flash/display/DisplayObject.js"></script>
<script src="../../src/flash/display/InteractiveObject.js"></script>
<script src="../../src/flash/display/DisplayObjectContainer.js"></script>
<script src="../../src/flash/display/Graphics.js"></script>
<script src="../../src/flash/display/Sprite.js"></script>
<script src="../../src/flash/display/MovieClip.js"></script>
<script>
var abcFiles = [];
var filesLoaded = 0;
["builtin.abc", "playerGlobal.abc"].forEach(function (v, i, a) {
var xhr = new XMLHttpRequest;
xhr.open("GET", "../../src/avm2/generated/" + v);
xhr.responseType = "arraybuffer";
xhr.onload = function () {
abcFiles[i] = new AbcFile(new Uint8Array(this.response), v, true);
if (++filesLoaded === a.length) {
abcFiles.forEach(function (abc) {
executeAbc(abc, ALWAYS_INTERPRET);
});
SWF.embed("../../examples/as3_tiger/tiger.swf", document.getElementById("stage"));
}
}
xhr.send();
});
</script>
</body>
</html>

Двоичные данные
examples/as3_tiger/tiger.fla Normal file

Двоичный файл не отображается.

Двоичные данные
examples/as3_tiger/tiger.swf Normal file

Двоичный файл не отображается.