簡単なフィルタ効果利用方法2
簡単なフィルタ効果利用方法ではeffect_type:1(特殊効果無し)とフィルタ効果(プラグイン)の組合せを紹介しました。ここでは他のエフェクトとフィルタ効果(プラグイン)のコンビネーションをご覧下さい。
サンプルは『左へ押し出し』(effect_type:3216)で作成されたボタンにフィルタプラグイン(filter_circle1br.swf)でフィルタ効果を適用しています。フィルタ効果(プラグイン)は様々なエフェクトと組合せによって表現力が向上します。
定義例
<?xml version="1.0" encoding="UTF-8" ?> <pagedata> <common> <copyright>elz.jp</copyright> <!-- 3x2のボタン定義 --> <col_max>3</col_max> <row_max>2</row_max> <!-- ボタン画像指定 --> <button_normal>image_easy/e002_normal.jpg</button_normal> <button_over>image_easy/e002_rollover.jpg</button_over> <!-- エフェクト指定 3216(左へ押し出し) --> <over_effect>3216</over_effect> <over_time>9</over_time> <!-- フィルタプラグイン指定 --> <over_plugin>../plugin/filter_circle1br.swf</over_plugin> <!-- 初期表示エフェクト指定 --> <init_effect>2</init_effect> <init_time>3</init_time> <!-- スコープ指定 --> <scope>0</scope> <!-- 余白指定 --> <padding>10</padding> <padding_top>40</padding_top> <padding_bottom>30</padding_bottom> <padding_left>70</padding_left> <padding_right>70</padding_right> </common> </pagedata>
フィルタプラグインへのカラー指定
フィルタプラグインは引数(QueryString)を指定することで色を変更することができます。フィルタプラグインにcolorパラメータを16進数で指定します。
- color=0000ffとした場合、フィルタは青になります。
- color=ff0000とした場合、フィルタは赤になります。
filter_???.swf?color=xxxxxx