PHP Velho Oeste 2024

SWFMovie::setbackground

(PHP 5 < 5.3.0, PECL ming SVN)

SWFMovie::setbackgroundEstablece el color de fondo

Descripción

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

Esta función ha sido declarada EXPERIMENTAL. Su funcionamiento, nombre y la documentación que le acompaña puede cambiar sin previo aviso en futuras versiones de PHP. Utilícela bajo su propia responsabilidad.

Establece el color de fondo.

¿Por que no hay una versión rgba? Piense sobre ello, se podría querer que el fondo HTML se viera. Hay una manera de hacerlo, pero sólo funciona en IE4. Busque en el sitio » http://www.macromedia.com/ para detalles.

Parámetros

Estos parámetros son enteros entre 0 y 255 o hexadecimale entre 0x00 y 0xFF:

red

Valor del componente rojo

green

Valor del componente verde

blue

Valor del componente azul

Valores devueltos

No devuelve ningún valor.

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