- class SWFEditor function replaceEditString({string $variable_name| int $edit_id}, string $text)
説明
SWF バイナリ中のテキストツールで張り付けたテキストを差し替えます。
引数
- string $variable_name or int $edit_id
- $variable_name (テキストツールで設定した変数名)
- $edit_id (SWF 内のコンテンツ毎にふられた ID)
- string $text (テキスト文字列)
戻り値
- boolean $result (true:成功, false:失敗)
使用例
<?php
$swf = new SWFEditor();
$swf->input($swfdata);
$swf->replaceEditString($variable_name, $text);
header('Content-type: application/x-shockwave-flash');
echo $swf->output();
注意
- 文字列エンコーディングは処理しません。自前で変換して下さい。
- 尚、Flash ver 6 以降は UTF-8 ですが、Flash Lite は ver 4 相当なので CP932(SJIS-Win)エンコーディングです。
参考
関連