swfmillを使って動的にFlashLite1.1を作成する方法(日本語の置換)


sjis対応のswfmillを用意してコマンドオプションに「-e cp932」を使用すればOK。

./swfmill -e cp932 swf2xml template.swf > template.xml

出力されるxmlファイルをPHPで文字列置換。
すべてUTF-8で作業する。

./swfmill -e cp932 xml2swf template.xml > template.swf

PCで見ると文字化けするけど携帯で見ると文字化けせず表示されます。
http://moeten.info/maidcafe/i/flashlite/template2_390.swf