Develop and Download Open Source Software

Recent Changes

2012-04-17
2012-04-03
2012-02-11
2011-11-09

Wiki Guide

Side Bar

  • class SWFEditor function replaceGIFData($image_id, $gifdata)

説明

SWF バイナリ中の画像を GIF で差し替えます。

引数

  • int $image_id (SWF 内のコンテンツ毎にふられた ID)
  • string $gifdata (GIF ファイルのデータ)

戻り値

  • boolean $result (true:成功, false:失敗)

使用例

<?php
$swf 
= new SWFEditor();
$swf->input($swfdata);
$swf->replaceGIFData($image_id$gifdata);
header('Content-type: application/x-shockwave-flash');
echo 
$swf->output();

備考

  • 透過GIFにも対応しています。
  • GIF アニメーションを渡した場合は一コマ目の画像を適用します。

参考

関連


SourceForge.JP is a Japanese version of SourceForge.net. For developments that are not related to Japan, we recommend you to use SourceForge.net.