PHP Velho Oeste 2024

SWFMovie::setbackground

(PHP 5 < 5.3.0, PECL ming SVN)

SWFMovie::setbackground背景色を設定する

説明

SWFMovie::setbackground ( int $red , int $green , int $blue ) : void
警告

この関数は、 実験的 なものです。この関数の動作・ 名前・その他ドキュメントに書かれている事項は、予告なく、将来的な PHP のリリースにおいて変更される可能性があります。 この関数は自己責任で使用してください。

背景色を設定します。

なで rgba 版がないのでしょうか? 考えても見てください。 HTML の背景を表示させたいこともあるでしょう。 その方法はあるのですが、IE4 でしか動作しません。詳細は » http://www.macromedia.com/ で検索してください。

パラメータ

これらのパラメータは、0 から 255 までの整数値か、あるいは 0x00 から 0xFF までの十六進値となります。

red

赤コンポーネントの値。

green

緑コンポーネントの値。

blue

青コンポーネントの値。

返り値

値を返しません。

add a note add a note

User Contributed Notes 3 notes

up
1
DerHorst at gmail dot com
14 years ago
Adding the following parameter to the EMBED tag works for a few browsers or will (maybe) work in future:

wmode="transparent"

http://www.macromedia.com/support/flash/ts/documents/wmode.htm
(redirecting to http://kb2.adobe.com/cps/142/tn_14201.html )
up
-2
martin lindhe
18 years ago
If you specify bgcolor in the html tags embedding the flash movie, this command have no effect.

To make setBackground() have an effect, make sure you remove

<param name="bgcolor" value="#ffffff>" />

and remove bgcolor="#ffffff" part from:
<embed src="file.swf" quality="high" bgcolor="#ffffff" ...>
up
-2
Anonymous
22 years ago
here's how to make the background transparent (IE4 or higher):
<param name="wmode" value="transparent">
To Top