Foros del Web » Creando para Internet » Flash y Actionscript »

Problema al incluir un flash en html

Estas en el tema de Problema al incluir un flash en html en el foro de Flash y Actionscript en Foros del Web. Hola, No sé si este es el foro correcto. Voy a explicarme. En mi página html incluyo un flash de la siguiente forma: Código PHP: ...
  #1 (permalink)  
Antiguo 11/12/2007, 13:57
 
Fecha de Ingreso: abril-2006
Mensajes: 131
Antigüedad: 18 años
Puntos: 1
Problema al incluir un flash en html

Hola,

No sé si este es el foro correcto. Voy a explicarme. En mi página html incluyo un flash de la siguiente forma:

Código PHP:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"
<
html
<
head
<
meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"

</
head
<
body
<
div id="container"
<
div id="header"
<
object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="760" height="90"
      <
param name="movie" value="../images/baner_azul.swf"
      <
param name="quality" value="high"
      <
embed src="../images/baner_azul.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="760" height="90"></embed
    </
object
  </
div> <!-- de div header --> 

... 
  </
div> <!-- de div container --> 
</
body
</
html

Al pasar la herramienta de validación: http://validator.w3.org/

Me da un error diciento que el tag "embed" y todos sus atributos no son soportados por el DOCTYPE utilizado. He probado con todos los DOCTYPE pero la herramienta de validación me sigue diciendo lo mismo.

El error es el siguiente (está en inglés) por si alguien le interesa:

You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.

--------------------------
¿Alguien me puede ayudar para incluir el flash de alguna manera que pase el validador?

Gracias y Saludos!!!
  #2 (permalink)  
Antiguo 11/12/2007, 14:42
Avatar de SinguerInc  
Fecha de Ingreso: octubre-2007
Ubicación: Barcelona, España
Mensajes: 551
Antigüedad: 16 años, 6 meses
Puntos: 5
Re: Problema al incluir un flash en html

mmm, no me acuerdo, pero yo lo habia solucionado, el tema es que tienes que cambiar de doctype, lo que significa cambiar medio sitio...esta "strict", que obviamente es mas estricto asi q con ese ni pruebes, y "traditional" q es el mas standard, has una pagina en dreamweaver que te pone el doctype en automatico y prueba las diferentes posibilidades...aunque si no recuerdo mal, el embed no ha sido reconocido por la w3c como elemento html estandard.

igualmente te dejo un link de la w3c con tecnicas para "mejorar" la accesibilidad y "flash" aqui
__________________
/blog.singuerinc.com
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 13:46.