<?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: Efecto de texto group94.com</title>
	<link>http://www.after-hours.org/2005/07/10/efecto-de-texto-group94com/</link>
	<description></description>
	<pubDate>Sat, 22 Nov 2008 08:26:58 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.5</generator>

	<item>
		<title>by: Cristian</title>
		<link>http://www.after-hours.org/2005/07/10/efecto-de-texto-group94com/#comment-1272</link>
		<pubDate>Mon, 09 Apr 2007 22:08:26 +0000</pubDate>
		<guid>http://www.after-hours.org/2005/07/10/efecto-de-texto-group94com/#comment-1272</guid>
					<description>Hola, soy nuevo en este sitio y me gustaria saber si puedes ayudarme a hacer un scroll dinamico que rescate valores de un txt externo.

Estoy haciendo un scroll de noticias, tipo scroller, el scroll se va a mover solo, es decir, van a ir pasando las noticias, cuando una este en el centro se va a detener unos segundos luego va a seguir moviendose hasta la otra noticia, estas noticias se van a cargar de un archivo .txt externo. Este archivo txt es uno para cada noticia y tiene un formato de T=Titulo, C=Cuerpo, etc.

Bueno algunas preguntas, como calculo la cantidad de noticias u archivos .txt ya que no siempre sera la misma cantidad de noticias.

Como crear cajas de texto por As y como hacer q estas se vayan moviendo.

Espero me puedan ayudar, muchas gracias.

saludos,

Cristian.</description>
		<content:encoded><![CDATA[<p>Hola, soy nuevo en este sitio y me gustaria saber si puedes ayudarme a hacer un scroll dinamico que rescate valores de un txt externo.</p>
<p>Estoy haciendo un scroll de noticias, tipo scroller, el scroll se va a mover solo, es decir, van a ir pasando las noticias, cuando una este en el centro se va a detener unos segundos luego va a seguir moviendose hasta la otra noticia, estas noticias se van a cargar de un archivo .txt externo. Este archivo txt es uno para cada noticia y tiene un formato de T=Titulo, C=Cuerpo, etc.</p>
<p>Bueno algunas preguntas, como calculo la cantidad de noticias u archivos .txt ya que no siempre sera la misma cantidad de noticias.</p>
<p>Como crear cajas de texto por As y como hacer q estas se vayan moviendo.</p>
<p>Espero me puedan ayudar, muchas gracias.</p>
<p>saludos,</p>
<p>Cristian.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Daimiel</title>
		<link>http://www.after-hours.org/2005/07/10/efecto-de-texto-group94com/#comment-25</link>
		<pubDate>Fri, 05 Jan 2007 16:29:54 +0000</pubDate>
		<guid>http://www.after-hours.org/2005/07/10/efecto-de-texto-group94com/#comment-25</guid>
					<description>Merci, creo ke me faltaba solo lo de .toString al leer del xml. 
Gracias.</description>
		<content:encoded><![CDATA[<p>Merci, creo ke me faltaba solo lo de .toString al leer del xml.<br />
Gracias.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: toni</title>
		<link>http://www.after-hours.org/2005/07/10/efecto-de-texto-group94com/#comment-24</link>
		<pubDate>Thu, 04 Jan 2007 17:45:09 +0000</pubDate>
		<guid>http://www.after-hours.org/2005/07/10/efecto-de-texto-group94com/#comment-24</guid>
					<description>Prueba a hacerlo como en el ejemplo que te pongo:

un xml muy sencillo ...

[xml]
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;texto&gt;Lorem ipsum dolor sit amet, orci at, feugiat nonummy...&lt;texto&gt;
[/xml]

actionScript para instanciar la clase cuando cargas xml

[as]
miniyo.autoSize = "left";
miniyo.wordWrap = true;

miXML = new XML();
miXML.ignoreWhite = true;
miXML.onLoad = function() {
	var mystring:String = this.firstChild.childNodes.toString();
	var str:StrMotion = new StrMotion(miniyo, 10);
	str.showText(mystring);
};

miXML.load('texto.xml');
[/as]

actionscript para instanciar la clase desde un botón

[as]
miniyo.autoSize = "left";
miniyo.wordWrap = true;
var mystring:String;
miXML = new XML();
miXML.ignoreWhite = true;
miXML.onLoad = function() {
	mystring = this.firstChild.childNodes.toString();
};
miXML.load('texto.xml');
btn2.onPress = function() {
	var str:StrMotion = new StrMotion(miniyo, 10);
	str.showText(mystring);
};
[/as]

Espero te sirva.

Saludos</description>
		<content:encoded><![CDATA[<p>Prueba a hacerlo como en el ejemplo que te pongo:</p>
<p>un xml muy sencillo ...</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;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;texto<span style="font-weight: bold; color: black;">&gt;</span></span></span>Lorem ipsum dolor sit amet, orci at, feugiat nonummy...<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;texto<span style="font-weight: bold; color: black;">&gt;</span></span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>actionScript para instanciar la clase cuando cargas xml</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;">miniyo.<span style="color: #0066CC;">autoSize</span> = <span style="color: #ff0000;">"left"</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">miniyo.<span style="color: #0066CC;">wordWrap</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;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">miXML = <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-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;">miXML.<span style="color: #0066CC;">ignoreWhite</span> = <span style="color: #000000; font-weight: bold;">true</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">miXML.<span style="color: #0066CC;">onLoad</span> = <span style="color: #000000; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><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; <span style="color: #000000; font-weight: bold;">var</span> mystring:<span style="color: #0066CC;">String</span> = <span style="color: #0066CC;">this</span>.<span style="color: #0066CC;">firstChild</span>.<span style="color: #0066CC;">childNodes</span>.<span style="color: #0066CC;">toString</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;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> str:StrMotion = <span style="color: #000000; font-weight: bold;">new</span> StrMotion<span style="color: #66cc66;">&#40;</span>miniyo, <span style="color: #cc66cc;color:#800000;">10</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; str.<span style="color: #006600;">showText</span><span style="color: #66cc66;">&#40;</span>mystring<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;"><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;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">miXML.<span style="color: #0066CC;">load</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'texto.xml'</span><span style="color: #66cc66;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>actionscript para instanciar la clase desde un botón</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;">miniyo.<span style="color: #0066CC;">autoSize</span> = <span style="color: #ff0000;">"left"</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">miniyo.<span style="color: #0066CC;">wordWrap</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;"><span style="color: #000000; font-weight: bold;">var</span> mystring:<span style="color: #0066CC;">String</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">miXML = <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-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;">miXML.<span style="color: #0066CC;">ignoreWhite</span> = <span style="color: #000000; font-weight: bold;">true</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">miXML.<span style="color: #0066CC;">onLoad</span> = <span style="color: #000000; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><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; mystring = <span style="color: #0066CC;">this</span>.<span style="color: #0066CC;">firstChild</span>.<span style="color: #0066CC;">childNodes</span>.<span style="color: #0066CC;">toString</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;"><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;">miXML.<span style="color: #0066CC;">load</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'texto.xml'</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;">btn2.<span style="color: #0066CC;">onPress</span> = <span style="color: #000000; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><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; <span style="color: #000000; font-weight: bold;">var</span> str:StrMotion = <span style="color: #000000; font-weight: bold;">new</span> StrMotion<span style="color: #66cc66;">&#40;</span>miniyo, <span style="color: #cc66cc;color:#800000;">10</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;">&nbsp; &nbsp; str.<span style="color: #006600;">showText</span><span style="color: #66cc66;">&#40;</span>mystring<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;"><span style="color: #66cc66;">&#125;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Espero te sirva.</p>
<p>Saludos
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Daimiel</title>
		<link>http://www.after-hours.org/2005/07/10/efecto-de-texto-group94com/#comment-22</link>
		<pubDate>Thu, 04 Jan 2007 14:15:01 +0000</pubDate>
		<guid>http://www.after-hours.org/2005/07/10/efecto-de-texto-group94com/#comment-22</guid>
					<description>Hola Toni, gracias por el AS de efecto. 
He probado tu efecto llamandolo desde otra clase y va perfecto el proble me surge si cuando le pasas el texto a mostrar (funcion str.showText) le pasas una variable ne vez del texto en comillas me sale undefined.
El texto lo cargo de un XML y con el trace se ve bien.
sabes a que se puede deber el error?
Gracias.</description>
		<content:encoded><![CDATA[<p>Hola Toni, gracias por el AS de efecto.<br />
He probado tu efecto llamandolo desde otra clase y va perfecto el proble me surge si cuando le pasas el texto a mostrar (funcion str.showText) le pasas una variable ne vez del texto en comillas me sale undefined.<br />
El texto lo cargo de un XML y con el trace se ve bien.<br />
sabes a que se puede deber el error?<br />
Gracias.
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
