mtascメモ
<?xml version="1.0" encoding="UTF-8"?> <!-- a1.xml --> <movie width="800" height="600" framerate="30"> <frame> <library> <video id="vid" width="400" height="300" /> <place id="vid" name="vid" /> </library> </frame> </movie>
//a3.as class a3 { function a3(){ var nc:NetConnection = new NetConnection(); nc.connect(null); var ns:NetStream = new NetStream(nc); _root.vid.attachVideo(ns); ns.play("file.flv"); } static function main(){ var app:a3 = new a3(); } }
swfmill simple a1.xml a2.swf mtasc -swf a2.swf -main a3.as -keep
「-keep」がキモ。