Mar 08, 2006
MTASC にチャレンジ
MTASC とは
MTASC は、Motion-Twin ActionScript 2 Compiler の略。 名前の通り、ActionScript2 のコンパイラ。 オープンソースで提供されている。 MTASC を使用することで Flash の swf ファイルを簡単に費用をかけずに生成できる。
- MTASC 公式サイト
- http://www.mtasc.org/#download
- MTASC ダウンロード
- http://www.mtasc.org/#download
ActionScript に関する資料
ActionScript に関する知識が全く無いので、参考になりそうなサイトをメモ。
- FLASH-jp フォーラム
- http://www.flash-jp.com/
- ActionScript ガイド
- http://www.macromedia.com/jp/support/flash/technotes.html#actionScript
- ActionScript 2.0 の学習
- http://livedocs.macromedia.com/flash/8_jp/main/00001214.html
- Flash の ActionScript チュートリアル集
- http://www.3enhancedesigners.com/tutorials/flash/flash_actionscript.asp
- Flash ActionScript Helper
- http://homepage3.nifty.com/ginga-b/
- Flash ActionScript 講座
- http://www.game3rd.com/flash/action/
- ActionScriptPlugin plugin
- http://xdoclet.codehaus.org/ActionScriptPlugin
サンプルコード
とりあえず Hello World だけチャレンジ。
class HelloWorld {
static var me : HelloWorld;
function HelloWorld() {
_root.createTextField("textfield",0,0,0,800,600);
_root.textfield.text = "Hello ActionScript World !!";
}
static function main(mc) {
me = new HelloWorld();
}
}
コンパイルはコマンドラインから実行する。
> mtasc -swf helloworld.swf -main -header 800:600:20 HelloWorld.as
TrackBack ping me at
http://www.in-vitro.jp/blog/index.cgi/Misc/20060308_01.trackback
writeback message: Ready to post a comment.
