FlashCommandとは、AdobeのMike Chambersさんが個人の趣味で、仕事以外の自分のプライベイトの時間を利用して作ったFlashのコンパイルをコマンドラインから起動するツールです。初期のバージョンは2003年に公開されました。C#で作ったので、WindowsのOSのみ対応していました。「MTASC(Motion-Twin ActionScript2 Compiler): フリーのコマンドラインActionScript(Flash)コンパイラ」のMTASCと少し似てるものです。

Flash MX 2004 からの新機能であるバッチ処理用の「コマンド」や、「ヒストリー」の機能などに利用されていますが、JSFL というファイルを作成することで(公式な仕様はまだ出てません)、自分で制御することも可能です。FlashCommandではその機能を応用して、コマンドラインから swf ファイルの生成が出来るようにした補助ツールです。外部エディタでファイルを記述している人が、Flash に切り替えなくてもその場でパブリッシュするといった使い方ができます。

2004年の2月にFlashCommandのOS Xバージョンがリリースされました。現在はFlash CS3まで対応しているようです。

以下はFlashCommandの使用方法です。

  1. FlashCommand.exe -e | -c | -p [-q] [-v] [-x] [-q] (-s <sourcefile>) ([-l] [<logfile>])
  2.     ([-o] <exportpath>) ([-f] <flashpath>) ([-t] <timeout>)
  3.  
  4. -version : Prints out information about the program.
  5. -help | Prints out usage information.
  6.  
  7. -e : Specifies export action.
  8. -c : Specifies save and compact action.
  9. -p : Specifies publish action.
  10.  
  11. -l : Specifies whether output should be logged to a file. Optional. Takes an optional
  12.     param specifying the path to the log file. If not specifies, log files will be
  13.     place in \log
  14. -q : Specifies quite mode. Optional. If specified, no output will be written to console
  15.     (although it may still be logged).
  16. -v : Specifies verbose mode.
  17. -d : Specifies temp directory that will be used for temporary file.
  18. -s : Specifies source files. Required.
  19. -o : Specifies the output file if -e flag is also set. Optional. If not specifies,
  20.     file will be output to same directory as source.
  21. -x : Specifies whether Flash should be closed after it is done processing. Optional.
  22. -k : Specifies whether the temp jsfl file should be deleted. Optional.
  23.  
  24. -f : Specifies Flash executable path. Optional.
  25. -t : Specifies timeout value. Optional
  26. -d : Specifies temp directory. Optional.

リソース

http://www.mikechambers.com/blog/index.php?s=FlashCommand Mike Chambersのブログ

http://code.google.com/p/flashcommand/ pythonバージョンのFlashCommand

メインコンテンツEND ■
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Posted on Saturday, 21st February 2009 by admin

Tags: , , ,
Posted in Flash Project | Comments (0) | 7,539 views

Leave a Reply