<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.5" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Flash XML CDATA</title>
	<link>http://www.after-hours.org/2005/01/02/flash-xml-cdata/</link>
	<description></description>
	<pubDate>Mon, 13 Oct 2008 16:00:32 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.5</generator>

	<item>
		<title>by: jd</title>
		<link>http://www.after-hours.org/2005/01/02/flash-xml-cdata/#comment-5900</link>
		<pubDate>Tue, 22 Jan 2008 18:44:11 +0000</pubDate>
		<guid>http://www.after-hours.org/2005/01/02/flash-xml-cdata/#comment-5900</guid>
					<description>Que bueno, hace algun rato habia buscado como meter en el XML ese tipo de datos.</description>
		<content:encoded><![CDATA[<p>Que bueno, hace algun rato habia buscado como meter en el XML ese tipo de datos.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: maria paz</title>
		<link>http://www.after-hours.org/2005/01/02/flash-xml-cdata/#comment-485</link>
		<pubDate>Tue, 20 Mar 2007 16:51:22 +0000</pubDate>
		<guid>http://www.after-hours.org/2005/01/02/flash-xml-cdata/#comment-485</guid>
					<description>Hola, 

Estoy trabajando en un xml que cargo a flash. Todo va perfecto salvo un pequeño detalle: Tengo varias listas  con su estilo pero cada vez que quiero poner la primera palabra en negrita con un  me pone también el bullet en negrita. Alguna idea para que esto no ocurra??
Tampoco estoy usando el CDATA..

muxas gracias!</description>
		<content:encoded><![CDATA[<p>Hola, </p>
<p>Estoy trabajando en un xml que cargo a flash. Todo va perfecto salvo un pequeño detalle: Tengo varias listas  con su estilo pero cada vez que quiero poner la primera palabra en negrita con un  me pone también el bullet en negrita. Alguna idea para que esto no ocurra??<br />
Tampoco estoy usando el CDATA..</p>
<p>muxas gracias!
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: toni</title>
		<link>http://www.after-hours.org/2005/01/02/flash-xml-cdata/#comment-224</link>
		<pubDate>Fri, 09 Mar 2007 05:43:14 +0000</pubDate>
		<guid>http://www.after-hours.org/2005/01/02/flash-xml-cdata/#comment-224</guid>
					<description>Tendrás que usar fuentes vinculadas, aqui un tutorial:

http://www.after-hours.org/2004/08/11/embedfonts-con-texto-dinamico/

saludos</description>
		<content:encoded><![CDATA[<p>Tendrás que usar fuentes vinculadas, aqui un tutorial:</p>
<p><a href="http://www.after-hours.org/2004/08/11/embedfonts-con-texto-dinamico/" rel="nofollow">http://www.after-hours.org/2004/08/11/embedfonts-con-texto-dinamico/</a></p>
<p>saludos
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Antonio</title>
		<link>http://www.after-hours.org/2005/01/02/flash-xml-cdata/#comment-220</link>
		<pubDate>Fri, 09 Mar 2007 00:15:22 +0000</pubDate>
		<guid>http://www.after-hours.org/2005/01/02/flash-xml-cdata/#comment-220</guid>
					<description>y si quiero mostrar el mismo tipo de letra en este caso GillSans en el campo de texto dinamico, y que no cambie cuando lo habres en otra pc u otro navegador como I.E, Safari o Mozilla...por que a mi me paso con una galeria y al verla en otra pc o sorpresa otro tipo de texto...GRACIAS!!!</description>
		<content:encoded><![CDATA[<p>y si quiero mostrar el mismo tipo de letra en este caso GillSans en el campo de texto dinamico, y que no cambie cuando lo habres en otra pc u otro navegador como I.E, Safari o Mozilla&#8230;por que a mi me paso con una galeria y al verla en otra pc o sorpresa otro tipo de texto&#8230;GRACIAS!!!
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: sergioelmoreno</title>
		<link>http://www.after-hours.org/2005/01/02/flash-xml-cdata/#comment-170</link>
		<pubDate>Fri, 23 Feb 2007 12:46:29 +0000</pubDate>
		<guid>http://www.after-hours.org/2005/01/02/flash-xml-cdata/#comment-170</guid>
					<description>Hola Tony.
Parece que he dado con una solución a el problema de adaptar html en campos de texto que leen de un xml en Flash 8.

Primero pego el codigo del archivo xml:
----------------------------------------

[XML]
&lt;?xml version="1.0" encoding="utf-8"?&gt;

&lt;enlaces&gt;
&lt;titulo&gt;Mis enlaces favoritos&lt;/titulo&gt;

&lt;categoria&gt;
Cat:&#160;Blogs&lt;/categoria&gt;

&lt;lista&gt;
 &lt;ul&gt;
 &lt;li&gt;&lt;a href="http://www.asfusion.com/blog/index.cfm?setlan=es" rel="nofollow"&gt;ASFusion&lt;/a&gt;&lt;/li&gt;
 &lt;li&gt;&lt;a href="http://www.carlosrovira.com/" rel="nofollow"&gt;Carlos Rovira&lt;/a&gt;&lt;/li&gt;
 &lt;li&gt;&lt;a href="http://www.code4net.com/" rel="nofollow"&gt;Code 4 Net&lt;/a&gt;&lt;/li&gt;
 &lt;li&gt;&lt;a href="http://www.cristalab.com/" rel="nofollow"&gt;Cristalab&lt;/a&gt;&lt;/li&gt;
 &lt;li&gt;&lt;a href="http://www.design-nation.net/es/" rel="nofollow"&gt;Design-nation&lt;/a&gt;&lt;/li&gt;
 &lt;li&gt;&lt;a href="http://www.elecash.org/blog/" rel="nofollow"&gt;Elecash&lt;/a&gt;&lt;/li&gt;
 &lt;li&gt;&lt;a href="http://www.10-lab.com/blog/" rel="nofollow"&gt;Flash Lab&lt;/a&gt;&lt;/li&gt;
 &lt;li&gt;&lt;a href="http://www.flashla.com/" rel="nofollow"&gt;Flashla&lt;/a&gt;&lt;/li&gt;
 &lt;li&gt;&lt;a href="http://blog.innocuo.com/" rel="nofollow"&gt;Innocuo&lt;/a&gt;&lt;/li&gt;
 &lt;li&gt;&lt;a href="http://www.kadazuro.com/blog/" rel="nofollow"&gt;Kadazuro&lt;/a&gt;&lt;/li&gt;
 &lt;li&gt;&lt;a href="http://klr20mg.com/" rel="nofollow"&gt;Krl20Mg&lt;/a&gt;&lt;/li&gt;
 &lt;li&gt;&lt;a href="http://www.nomaster.com" rel="nofollow"&gt;nomaster&lt;/a&gt;&lt;/li&gt;
 &lt;li&gt;&lt;a href="http://www.oscartrelles.com/es/" rel="nofollow"&gt;Oscar Trelles&lt;/a&gt;&lt;/li&gt;
 &lt;li&gt;&lt;a href="http://www.sidedev.net/blog/" rel="nofollow"&gt;SideDev&lt;/a&gt;&lt;/li&gt;
 &lt;li&gt;&lt;a href="http://x-flash.org/blog/index.html" rel="nofollow"&gt;X-Flash&lt;/a&gt;&lt;/li&gt;
 &lt;/ul&gt;
 &lt;/lista&gt;
 &lt;/enlaces&gt;

[/XML]
 
---------------------------------------------------
Como puedes observar el componente CDATA desaparece, ya que es innecesario (en el caso de mi archivo en concreto )

En el archivo .fla he creado un textField en el que he marcado la casilla de permitir html en el campo de texto y le he introducido como nombre de vr: texto (tambien he nombrado con el mismo nombre al Campo de Texto)

En una capa anexa he incluido el siguiente codigo en AS:
------------------------------------------------------

[AS]
var styles:TextField.StyleSheet = new TextField.StyleSheet();
styles.setStyle("titulo", {
    color:'#000000', 
    fontFamily:'Arial,Helvetica,sans-serif', 
    fontSize:'12', 
    display:'block'
});
styles.setStyle("a:hover", {
    textDecoration:'underline'
});
[/AS]
-------------------------------------------------------

Con este codigo le declaro a cada nodo del xml atributos CSS (en este caso concreto, solo a Titulo y a los links)
seguimos con mas codigo:
-------------------------------------------------------

[AS]
var my_xml:XML = new XML();
my_xml.ignoreWhite = true;
my_xml.onLoad = function(success:Boolean):Void {
    if (success) {
        texto.styleSheet = styles;
        texto.htmlText = my_xml;
    } else {
        trace("Error loading XML.");
    }
};
my_xml.load("mixml.xml");
[/AS]
--------------------------------------------------------
Con este codigo declaramos primero el xml (agragando la característica styleSheet) y despues lo cargamos en el textField correspondiente.
Publicamos y funciona correctamente.
(notese que los saltos de linea se han incluido en el xml mediante la etiqueta '' como si fuera un html.)

Espero haber sido de ayuda.
Si no esta muy claro así comentadmelo y lo clarifico un poco ^^

Salud!!
:)</description>
		<content:encoded><![CDATA[<p>Hola Tony.<br />
Parece que he dado con una solución a el problema de adaptar html en campos de texto que leen de un xml en Flash 8.</p>
<p>Primero pego el codigo del archivo xml:<br />
----------------------------------------</p>
<div class="igBar"><span id="lxml-1"><a href="#" onclick="javascript:showPlainTxt('xml-1'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">XML:</span>
<div id="xml-1">
<div class="xml">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;</span>?xml <span style="color: #000066;">version</span>=<span style="color: #ff0000;">"1.0"</span> <span style="color: #000066;">encoding</span>=<span style="color: #ff0000;">"utf-8"</span>?<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;enlaces<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;titulo<span style="font-weight: bold; color: black;">&gt;</span></span></span>Mis enlaces favoritos<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/titulo<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;categoria<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Cat:<span style="color: #ddbb00;">&amp;nbsp;</span>Blogs<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/categoria<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;lista<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;ul<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;li<span style="font-weight: bold; color: black;">&gt;</span></span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"http://www.asfusion.com/blog/index.cfm?setlan=es"</span> <span style="color: #000066;">rel</span>=<span style="color: #ff0000;">"nofollow"</span><span style="font-weight: bold; color: black;">&gt;</span></span>ASFusion<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/a<span style="font-weight: bold; color: black;">&gt;</span></span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/li<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;li<span style="font-weight: bold; color: black;">&gt;</span></span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"http://www.carlosrovira.com/"</span> <span style="color: #000066;">rel</span>=<span style="color: #ff0000;">"nofollow"</span><span style="font-weight: bold; color: black;">&gt;</span></span>Carlos Rovira<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/a<span style="font-weight: bold; color: black;">&gt;</span></span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/li<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;li<span style="font-weight: bold; color: black;">&gt;</span></span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"http://www.code4net.com/"</span> <span style="color: #000066;">rel</span>=<span style="color: #ff0000;">"nofollow"</span><span style="font-weight: bold; color: black;">&gt;</span></span>Code 4 Net<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/a<span style="font-weight: bold; color: black;">&gt;</span></span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/li<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;li<span style="font-weight: bold; color: black;">&gt;</span></span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"http://www.cristalab.com/"</span> <span style="color: #000066;">rel</span>=<span style="color: #ff0000;">"nofollow"</span><span style="font-weight: bold; color: black;">&gt;</span></span>Cristalab<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/a<span style="font-weight: bold; color: black;">&gt;</span></span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/li<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;li<span style="font-weight: bold; color: black;">&gt;</span></span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"http://www.design-nation.net/es/"</span> <span style="color: #000066;">rel</span>=<span style="color: #ff0000;">"nofollow"</span><span style="font-weight: bold; color: black;">&gt;</span></span>Design-nation<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/a<span style="font-weight: bold; color: black;">&gt;</span></span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/li<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;li<span style="font-weight: bold; color: black;">&gt;</span></span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"http://www.elecash.org/blog/"</span> <span style="color: #000066;">rel</span>=<span style="color: #ff0000;">"nofollow"</span><span style="font-weight: bold; color: black;">&gt;</span></span>Elecash<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/a<span style="font-weight: bold; color: black;">&gt;</span></span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/li<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;li<span style="font-weight: bold; color: black;">&gt;</span></span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"http://www.10-lab.com/blog/"</span> <span style="color: #000066;">rel</span>=<span style="color: #ff0000;">"nofollow"</span><span style="font-weight: bold; color: black;">&gt;</span></span>Flash Lab<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/a<span style="font-weight: bold; color: black;">&gt;</span></span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/li<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;li<span style="font-weight: bold; color: black;">&gt;</span></span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"http://www.flashla.com/"</span> <span style="color: #000066;">rel</span>=<span style="color: #ff0000;">"nofollow"</span><span style="font-weight: bold; color: black;">&gt;</span></span>Flashla<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/a<span style="font-weight: bold; color: black;">&gt;</span></span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/li<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;li<span style="font-weight: bold; color: black;">&gt;</span></span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"http://blog.innocuo.com/"</span> <span style="color: #000066;">rel</span>=<span style="color: #ff0000;">"nofollow"</span><span style="font-weight: bold; color: black;">&gt;</span></span>Innocuo<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/a<span style="font-weight: bold; color: black;">&gt;</span></span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/li<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;li<span style="font-weight: bold; color: black;">&gt;</span></span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"http://www.kadazuro.com/blog/"</span> <span style="color: #000066;">rel</span>=<span style="color: #ff0000;">"nofollow"</span><span style="font-weight: bold; color: black;">&gt;</span></span>Kadazuro<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/a<span style="font-weight: bold; color: black;">&gt;</span></span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/li<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;li<span style="font-weight: bold; color: black;">&gt;</span></span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"http://klr20mg.com/"</span> <span style="color: #000066;">rel</span>=<span style="color: #ff0000;">"nofollow"</span><span style="font-weight: bold; color: black;">&gt;</span></span>Krl20Mg<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/a<span style="font-weight: bold; color: black;">&gt;</span></span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/li<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;li<span style="font-weight: bold; color: black;">&gt;</span></span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"http://www.nomaster.com"</span> <span style="color: #000066;">rel</span>=<span style="color: #ff0000;">"nofollow"</span><span style="font-weight: bold; color: black;">&gt;</span></span>nomaster<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/a<span style="font-weight: bold; color: black;">&gt;</span></span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/li<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;li<span style="font-weight: bold; color: black;">&gt;</span></span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"http://www.oscartrelles.com/es/"</span> <span style="color: #000066;">rel</span>=<span style="color: #ff0000;">"nofollow"</span><span style="font-weight: bold; color: black;">&gt;</span></span>Oscar Trelles<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/a<span style="font-weight: bold; color: black;">&gt;</span></span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/li<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;li<span style="font-weight: bold; color: black;">&gt;</span></span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"http://www.sidedev.net/blog/"</span> <span style="color: #000066;">rel</span>=<span style="color: #ff0000;">"nofollow"</span><span style="font-weight: bold; color: black;">&gt;</span></span>SideDev<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/a<span style="font-weight: bold; color: black;">&gt;</span></span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/li<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;li<span style="font-weight: bold; color: black;">&gt;</span></span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"http://x-flash.org/blog/index.html"</span> <span style="color: #000066;">rel</span>=<span style="color: #ff0000;">"nofollow"</span><span style="font-weight: bold; color: black;">&gt;</span></span>X-Flash<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/a<span style="font-weight: bold; color: black;">&gt;</span></span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/li<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/ul<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/lista<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/enlaces<span style="font-weight: bold; color: black;">&gt;</span></span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>---------------------------------------------------<br />
Como puedes observar el componente CDATA desaparece, ya que es innecesario (en el caso de mi archivo en concreto )</p>
<p>En el archivo .fla he creado un textField en el que he marcado la casilla de permitir html en el campo de texto y le he introducido como nombre de vr: texto (tambien he nombrado con el mismo nombre al Campo de Texto)</p>
<p>En una capa anexa he incluido el siguiente codigo en AS:<br />
------------------------------------------------------</p>
<div class="igBar"><span id="lactionscript-2"><a href="#" onclick="javascript:showPlainTxt('actionscript-2'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">Actionscript:</span>
<div id="actionscript-2">
<div class="actionscript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">var</span> styles:<span style="color: #0066CC;">TextField</span>.<span style="color: #006600;">StyleSheet</span> = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">TextField</span>.<span style="color: #006600;">StyleSheet</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">styles.<span style="color: #0066CC;">setStyle</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"titulo"</span>, <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #0066CC;">color</span>:<span style="color: #ff0000;">'#000000'</span>, </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; fontFamily:<span style="color: #ff0000;">'Arial,Helvetica,sans-serif'</span>, </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; fontSize:<span style="color: #ff0000;">'12'</span>, </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; display:<span style="color: #ff0000;">'block'</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">styles.<span style="color: #0066CC;">setStyle</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"a:hover"</span>, <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; textDecoration:<span style="color: #ff0000;">'underline'</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p>
-------------------------------------------------------</p>
<p>Con este codigo le declaro a cada nodo del xml atributos CSS (en este caso concreto, solo a Titulo y a los links)<br />
seguimos con mas codigo:<br />
-------------------------------------------------------</p>
<div class="igBar"><span id="lactionscript-3"><a href="#" onclick="javascript:showPlainTxt('actionscript-3'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">Actionscript:</span>
<div id="actionscript-3">
<div class="actionscript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">var</span> my_xml:<span style="color: #0066CC;">XML</span> = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">XML</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">my_xml.<span style="color: #0066CC;">ignoreWhite</span> = <span style="color: #000000; font-weight: bold;">true</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">my_xml.<span style="color: #0066CC;">onLoad</span> = <span style="color: #000000; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span>success:<span style="color: #0066CC;">Boolean</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">Void</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>success<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; texto.<span style="color: #006600;">styleSheet</span> = styles;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; texto.<span style="color: #0066CC;">htmlText</span> = my_xml;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"Error loading XML."</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">my_xml.<span style="color: #0066CC;">load</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"mixml.xml"</span><span style="color: #66cc66;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p>
--------------------------------------------------------<br />
Con este codigo declaramos primero el xml (agragando la característica styleSheet) y despues lo cargamos en el textField correspondiente.<br />
Publicamos y funciona correctamente.<br />
(notese que los saltos de linea se han incluido en el xml mediante la etiqueta '' como si fuera un html.)</p>
<p>Espero haber sido de ayuda.<br />
Si no esta muy claro así comentadmelo y lo clarifico un poco ^^</p>
<p>Salud!!<br />
:)
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: sergioelmoreno</title>
		<link>http://www.after-hours.org/2005/01/02/flash-xml-cdata/#comment-167</link>
		<pubDate>Thu, 22 Feb 2007 22:04:35 +0000</pubDate>
		<guid>http://www.after-hours.org/2005/01/02/flash-xml-cdata/#comment-167</guid>
					<description>Gracias por responder :)

Yo también me pondré a toquetear el código a ver si saco algo en claro.

Un saludo
:D</description>
		<content:encoded><![CDATA[<p>Gracias por responder <img src='http://www.after-hours.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Yo también me pondré a toquetear el código a ver si saco algo en claro.</p>
<p>Un saludo<br />
:D
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: toni</title>
		<link>http://www.after-hours.org/2005/01/02/flash-xml-cdata/#comment-165</link>
		<pubDate>Thu, 22 Feb 2007 20:03:21 +0000</pubDate>
		<guid>http://www.after-hours.org/2005/01/02/flash-xml-cdata/#comment-165</guid>
					<description>Hola Sergio, ninguna molestia. Ignoraba esto, lo hice con flas mx 2004 y claro ...

La única solución que he encontrado (poco satisfactoria) es anular la propiedad autoSize y dar un tamaño de texto predeterminado al textField.

Lo investigaremos.

saludos</description>
		<content:encoded><![CDATA[<p>Hola Sergio, ninguna molestia. Ignoraba esto, lo hice con flas mx 2004 y claro ...</p>
<p>La única solución que he encontrado (poco satisfactoria) es anular la propiedad autoSize y dar un tamaño de texto predeterminado al textField.</p>
<p>Lo investigaremos.</p>
<p>saludos
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: sergioelmoreno</title>
		<link>http://www.after-hours.org/2005/01/02/flash-xml-cdata/#comment-160</link>
		<pubDate>Thu, 22 Feb 2007 12:34:49 +0000</pubDate>
		<guid>http://www.after-hours.org/2005/01/02/flash-xml-cdata/#comment-160</guid>
					<description>Hola Toni
Espero no molestar con esta pregunta, pero por mucho que le doy vueltas al asunto no se porque sucede lo siguiente:
He probado el tutorial y cuando publico el swf bajo Flash player 8 el interlineado se ensancha una barbaridad, sin embargo si lo publicamos bajo Flash player 7 se ve perfecto (como en tu ejem).
¿Sabes porque ocurre esto?

Lo dicho, muchas gracias por todo
Un saludo :)</description>
		<content:encoded><![CDATA[<p>Hola Toni<br />
Espero no molestar con esta pregunta, pero por mucho que le doy vueltas al asunto no se porque sucede lo siguiente:<br />
He probado el tutorial y cuando publico el swf bajo Flash player 8 el interlineado se ensancha una barbaridad, sin embargo si lo publicamos bajo Flash player 7 se ve perfecto (como en tu ejem).<br />
¿Sabes porque ocurre esto?</p>
<p>Lo dicho, muchas gracias por todo<br />
Un saludo <img src='http://www.after-hours.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
