Comunidad de diseño web y desarrollo en internet online

Menu en 2 lineas

Citar            
MensajeEscrito el 30 Jun 2009 06:22 pm
Tengo hecho un menu en Flash mediate el componente Text Menu Bar, me sale pero lo quiero en dos lineas de texto, en ua misma pelicula, llamar al XML que contenga las propiedades para verlo en SWF.

Código XML :

<?xml  version='1.0'  encoding='UTF-8'?>
<items textColor="0x000000" rollOverTextColor="0x0000FF" textSize="25" rollOverTextSize="35" textFont="pristina" easeType="Strong"  easeDirection="easeOut" easeDuration="1" spacing="10"  >
   <tmenu title="Libros / Books" url="libros.html" target="_self" callFunction="">
      <properties  textSize=""  rollOverTextSize="" textFont="" rollOverTextFont="" bold="" italic="" underline="" rollOverBold="" rollOverItalic="" rollOverUnderline=""/>
   </tmenu>
   <tmenu title="Premios y Becas / Award and Fellowships" url="premios.html" target="_self" callFunction="">
      <properties  textSize=""  rollOverTextSize="" textFont="" rollOverTextFont="" bold="" italic="" underline="" rollOverBold="" rollOverItalic="" rollOverUnderline=""/>
   </tmenu>
   <tmenu title="Criticas / Critics" url="criticas.html" target="_self" callFunction="">
      <properties  textSize=""  rollOverTextSize="" textFont="" rollOverTextFont="" bold="" italic="" underline="" rollOverBold="" rollOverItalic="" rollOverUnderline=""/>
   </tmenu>
   <tmenu title="Fotos / Photos" url="fotos.html" target="_self" callFunction="">
      <properties  textSize=""  rollOverTextSize="" textFont="" rollOverTextFont="" bold="" italic="" underline="" rollOverBold="" rollOverItalic="" rollOverUnderline=""/>
   </tmenu>
   <tmenu title="Contacto / Contact" url="contacto.html" target="_self" callFunction="">
      <properties  textSize=""  rollOverTextSize="" textFont="" rollOverTextFont="" bold="" italic="" underline="" rollOverBold="" rollOverItalic="" rollOverUnderline=""/>
   </tmenu>
   <br>
   <tmenu title="Artículos / Articles" url="articulos.html" target="_self" callFunction="">
      <properties textSize="" rollOverTextSize="" textFont="" rollOverTextFont="" bold="" italic="" underline="" rollOverBold="" rollOverItalic="" rollOverUnderline=""/>
   </tmenu>
   <tmenu title="Taller Literario / Literary Workshop" url="taller.html" target="_self" callFunction="">
      <properties textSize="" rollOverTextSize="" textFont="" rollOverTextFont="" bold="" italic="" underline="" rollOverBold="" rollOverItalic="" rollOverUnderline=""/>
   </tmenu>
   <tmenu title="inicio" url="index.html" target="_self" callFunction="">
      <properties textSize="" rollOverTextSize="" textFont="" rollOverTextFont="" bold="" italic="" underline="" rollOverBold="" rollOverItalic="" rollOverUnderline=""/>
   </tmenu>
   <tmenu title="Novedades / News" url="novedades.html" target="_self" callFunction="">
      <properties textSize="" rollOverTextSize="" textFont="" rollOverTextFont="" bold="" italic="" underline="" rollOverBold="" rollOverItalic="" rollOverUnderline=""/>
   </tmenu>
   <tmenu title="Enlaces / Links" url="contacto.html" target="_self" callFunction="">
      <properties textSize="" rollOverTextSize="" textFont="" rollOverTextFont="" bold="" italic="" underline="" rollOverBold="" rollOverItalic="" rollOverUnderline=""/>
   </tmenu>
   <br>
</items>


En XHTML <br> y <br /> reconoce un salto de linea, en XML se opera con CDATA, si esto es posible, como manejar CDATA y donde ponerlo?

Por Siriö

624 de clabLevel

4 tutoriales
1 articulo

 

Germany

msie7
Citar            
MensajeEscrito el 30 Jun 2009 09:10 pm

Código XML :

<item>
       <title><![CDATA[Este es mi <b>TITULO</b>]]></title>
       <description><![CDATA[Mucho bla bla bla<br/>Y más...]]></description>
</item>

No sirve si pones el contenido como atributo

Por nasho

Claber

908 de clabLevel

1 tutorial

Genero:Masculino  

Web Developer

firefox
Citar            
MensajeEscrito el 30 Jun 2009 09:42 pm
Te crees que es facil, aparece como Undefined, decime donde lo pongo asi se ve.

"Expected comment or processing instruction[xml]"

Encime escribiste mal, es XML, no xhtml, tu respuesta es muy basica como para tomarla en cuenta.

Por Siriö

624 de clabLevel

4 tutoriales
1 articulo

 

Germany

msie7
Citar            
MensajeEscrito el 30 Jun 2009 09:50 pm
el XML no tiene ningu error de codigo, supuestamente esta correcto, pero la pelicula flash muestra "Udefined"

entre donde y hasta donde se pone el <![CDATA[ y ]]>

Por Siriö

624 de clabLevel

4 tutoriales
1 articulo

 

Germany

msie7
Citar            
MensajeEscrito el 01 Jul 2009 01:48 am
si tu menu es de 10 items y quieres que se vean en columnas de 5 por que no lo haces con el ciclo del fla

algo como

columna = 0;
total = elXML.firstChild.... lenght;
item=0;
itemsColumna = total/2;
for()
if(item==itemsColumna)columna++
item++

bueno la idea es algo por el estilo

Por nasho

Claber

908 de clabLevel

1 tutorial

Genero:Masculino  

Web Developer

firefox

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.