vim と make と mtasc と swfmill でカウンター

SwfmillWithCode.xml
<?xml version="1.0" encoding="iso-8859-1" ?>
<movie width="320" height="240" framerate="1">
  <background color="#cccccc"/>
  <font id="font0" import="C:/Windows/Fonts/arial.ttf" glyphs="0123456789" />
  <textfield id="id_txt0" width="200" height="50" size="20" font="font0" text="0"/>
  <place id="id_txt0" name="txt" depth="1"/>
  <clip id="id_mc0" import="SwfmillWithCode.swf" />
  <place id="id_mc0"/>
  <frame />
</movie>
SwfmillWithCode.as
class withCode {
  static function main() {
    _root.onEnterFrame = function() {
      _root.txt.text = _root.txt.text - 0 + 1;
    }
  }
}
makefile
targ_dir = C:/Documents and Settings/$(USERNAME)/My Documents/tmp
targ_url = http://127.0.0.1/tmp

mtasc="C:/tools/mtasc-1.11/mtasc.exe"
swfmill="C:/tools/swfmill-0.2.10-win32/swfmill.exe"
firefox = "C:/Program Files/Mozilla Firefox/firefox.exe"

	$(mtasc) -swf SwfmillWithCode.swf -main -version 8 SwfmillWithCode.as
	$(swfmill) simple SwfmillWithCode.xml test.swf
	copy test.swf $(targ_dir)
	copy test.htm $(targ_dir)
	$(firefox) $(targ_url)test.htm

  • main の扱い、よくわからず

とりあえず以上。