<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comentarios en: Reemplazar caracteres o palabras en flash</title>
	<atom:link href="http://www.leobaraldi.com.ar/2007/06/reemplazar-caracteres-o-palablas-en-flash/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.leobaraldi.com.ar/2007/06/reemplazar-caracteres-o-palablas-en-flash/</link>
	<description>Recursos y ejemplos de actionscript, Flash, AIR, Flex, CSS y HTML. Tutoriales de actionscript 2 y actionscript 3</description>
	<lastBuildDate>Wed, 11 Jan 2012 17:26:38 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>Por: julfit0</title>
		<link>http://www.leobaraldi.com.ar/2007/06/reemplazar-caracteres-o-palablas-en-flash/comment-page-1/#comment-3075</link>
		<dc:creator>julfit0</dc:creator>
		<pubDate>Mon, 08 Feb 2010 21:41:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.leobaraldi.com.ar/2007/06/09/reemplazar-caracteres-o-palablas-en-flash/#comment-3075</guid>
		<description>Hola, interesante el articulo, ando buscando algo similar para resolver un problema similar. A ver si me puedes dar una manito.

Tengo este codigo que me remplaza caracteres

function searchReplace(block:String, find:String, replace:String):String {
	return block.split(find).join(replace);
}

myStr = &quot;&lt;embed src=[]chato[][]chato[][]&quot;;

tmp = searchReplace(myStr, &quot;[&quot;, &quot;&#039;&quot;);

Yo busco remplazar los caracteres &quot;[&quot; y  &quot;]&quot; pero solo permite remplazar uno de los dos caracteres, dejandome uno sin remplazar.... hay alguna forma de hacer que ambos sean remplazables?? se puede hacer con la funcion que estoy haciendo?? .

un saludo y gracias</description>
		<content:encoded><![CDATA[<p>Hola, interesante el articulo, ando buscando algo similar para resolver un problema similar. A ver si me puedes dar una manito.</p>
<p>Tengo este codigo que me remplaza caracteres</p>
<p>function searchReplace(block:String, find:String, replace:String):String {<br />
	return block.split(find).join(replace);<br />
}</p>
<p>myStr = &#8220;&lt;embed src=[]chato[][]chato[][]&quot;;</p>
<p>tmp = searchReplace(myStr, &quot;[&quot;, &quot;&#039;&quot;);</p>
<p>Yo busco remplazar los caracteres &quot;[&quot; y  &quot;]&quot; pero solo permite remplazar uno de los dos caracteres, dejandome uno sin remplazar&#8230;. hay alguna forma de hacer que ambos sean remplazables?? se puede hacer con la funcion que estoy haciendo?? .</p>
<p>un saludo y gracias</p>
]]></content:encoded>
	</item>
	<item>
		<title>Por: Gabriel</title>
		<link>http://www.leobaraldi.com.ar/2007/06/reemplazar-caracteres-o-palablas-en-flash/comment-page-1/#comment-2823</link>
		<dc:creator>Gabriel</dc:creator>
		<pubDate>Thu, 21 Jan 2010 04:27:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.leobaraldi.com.ar/2007/06/09/reemplazar-caracteres-o-palablas-en-flash/#comment-2823</guid>
		<description>Excepto que al incluir el timer para actualizar la informacion del swf, algo se desfaza y me manda un error!

Algo de que no se puede convertir un tipo de datos a otro.

Alguna idea?

Gracias una vez mas.

:D</description>
		<content:encoded><![CDATA[<p>Excepto que al incluir el timer para actualizar la informacion del swf, algo se desfaza y me manda un error!</p>
<p>Algo de que no se puede convertir un tipo de datos a otro.</p>
<p>Alguna idea?</p>
<p>Gracias una vez mas.</p>
<p>:D</p>
]]></content:encoded>
	</item>
	<item>
		<title>Por: Gabriel</title>
		<link>http://www.leobaraldi.com.ar/2007/06/reemplazar-caracteres-o-palablas-en-flash/comment-page-1/#comment-2753</link>
		<dc:creator>Gabriel</dc:creator>
		<pubDate>Mon, 18 Jan 2010 09:11:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.leobaraldi.com.ar/2007/06/09/reemplazar-caracteres-o-palablas-en-flash/#comment-2753</guid>
		<description>Hola!

Lo resolvi de este modo:

[as]//-- importamos las clases necesarias
import flash.net.*;
import flash.events.*;
import flash.text.TextField;
//-- creamos una instancia de URLLoader para info externa
var loader:URLLoader=new URLLoader();
//-- tipo de info a recibir
loader.dataFormat=URLLoaderDataFormat.VARIABLES;
//-- cual es el archivo que cargaremos
loader.load(new URLRequest(&quot;http://estelarisradio.net/mostrar.php&quot;));
//-- listener para cuando la carga este completa
loader.addEventListener(Event.COMPLETE,carga);
//-- funcion a ejecutarse
function carga(event:Event) {
var loader:URLLoader= URLLoader(event.target);
var intervalo:Timer = new Timer(1000, 0);
intervalo.addEventListener(TimerEvent.TIMER, carga);
intervalo.start();
//-- creamos el campo de texto donde se mostrara la info del php
//-- creamos el campo de texto donde se mostrara la info del php
var texto:TextField = new TextField();
texto.type = TextFieldType.DYNAMIC;
texto.border = true;
texto.height = 20;
texto.width = 300;
texto.x = 0;
texto.y = 0;
texto.text=String(loader.data.dato2);
addChild(texto);

var texto2:TextField = new TextField();
texto2.type = TextFieldType.DYNAMIC;
texto2.border = true;
texto2.height = 20;
texto2.width = 300;
texto2.x = 310;
texto2.y = 0;
texto2.text=String(loader.data.dato1);
addChild(texto2);
}
[/as]
Saludos!.

:)</description>
		<content:encoded><![CDATA[<p>Hola!</p>
<p>Lo resolvi de este modo:</p>
<div class="igBar"><span id="lactionscript-1"><a href="#" onclick="javascript:showPlainTxt('actionscript-1'); return false;">Clic para ver Texto Plano</a></span></div>
<div class="syntax_hilite"><span class="langName">Actionscript:</span>
<div id="actionscript-1">
<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: #808080; font-style: italic;">//-- importamos las clases necesarias</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">net</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: #0066CC;">import</span> flash.<span style="color: #006600;">events</span>.*;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0066CC;">import</span> flash.<span style="color: #0066CC;">text</span>.<span style="color: #0066CC;">TextField</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: #808080; font-style: italic;">//-- creamos una instancia de URLLoader para info externa</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">var</span> loader:URLLoader=<span style="color: #000000; font-weight: bold;">new</span> URLLoader<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;"><span style="color: #808080; font-style: italic;">//-- tipo de info a recibir</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">loader.<span style="color: #006600;">dataFormat</span>=URLLoaderDataFormat.<span style="color: #006600;">VARIABLES</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: #808080; font-style: italic;">//-- cual es el archivo que cargaremos</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">loader.<span style="color: #0066CC;">load</span><span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> URLRequest<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"http://estelarisradio.net/mostrar.php"</span><span style="color: #66cc66;">&#41;</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;"><span style="color: #808080; font-style: italic;">//-- listener para cuando la carga este completa</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">loader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>Event.<span style="color: #006600;">COMPLETE</span>,carga<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: #808080; font-style: italic;">//-- funcion a ejecutarse</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">function</span> carga<span style="color: #66cc66;">&#40;</span>event:Event<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;"><span style="color: #000000; font-weight: bold;">var</span> loader:URLLoader= URLLoader<span style="color: #66cc66;">&#40;</span>event.<span style="color: #0066CC;">target</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: #000000; font-weight: bold;">var</span> intervalo:Timer = <span style="color: #000000; font-weight: bold;">new</span> Timer<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;color:#800000;">1000</span>, <span style="color: #cc66cc;color:#800000;">0</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;">intervalo.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>TimerEvent.<span style="color: #006600;">TIMER</span>, carga<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;">intervalo.<span style="color: #0066CC;">start</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;"><span style="color: #808080; font-style: italic;">//-- creamos el campo de texto donde se mostrara la info del php</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">//-- creamos el campo de texto donde se mostrara la info del php</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> texto:<span style="color: #0066CC;">TextField</span> = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">TextField</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;">texto.<span style="color: #0066CC;">type</span> = TextFieldType.<span style="color: #0066CC;">DYNAMIC</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;">texto.<span style="color: #0066CC;">border</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;">texto.<span style="color: #0066CC;">height</span> = <span style="color: #cc66cc;color:#800000;">20</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;">texto.<span style="color: #0066CC;">width</span> = <span style="color: #cc66cc;color:#800000;">300</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">texto.<span style="color: #006600;">x</span> = <span style="color: #cc66cc;color:#800000;">0</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;">texto.<span style="color: #006600;">y</span> = <span style="color: #cc66cc;color:#800000;">0</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">texto.<span style="color: #0066CC;">text</span>=<span style="color: #0066CC;">String</span><span style="color: #66cc66;">&#40;</span>loader.<span style="color: #0066CC;">data</span>.<span style="color: #006600;">dato2</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;">addChild<span style="color: #66cc66;">&#40;</span>texto<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;</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> texto2:<span style="color: #0066CC;">TextField</span> = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">TextField</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;">texto2.<span style="color: #0066CC;">type</span> = TextFieldType.<span style="color: #0066CC;">DYNAMIC</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;">texto2.<span style="color: #0066CC;">border</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;">texto2.<span style="color: #0066CC;">height</span> = <span style="color: #cc66cc;color:#800000;">20</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;">texto2.<span style="color: #0066CC;">width</span> = <span style="color: #cc66cc;color:#800000;">300</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">texto2.<span style="color: #006600;">x</span> = <span style="color: #cc66cc;color:#800000;">310</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;">texto2.<span style="color: #006600;">y</span> = <span style="color: #cc66cc;color:#800000;">0</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">texto2.<span style="color: #0066CC;">text</span>=<span style="color: #0066CC;">String</span><span style="color: #66cc66;">&#40;</span>loader.<span style="color: #0066CC;">data</span>.<span style="color: #006600;">dato1</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;">addChild<span style="color: #66cc66;">&#40;</span>texto2<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>
</ol>
</div>
</div>
</div>
<p>
Saludos!.</p>
<p>:)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Por: Gabriel</title>
		<link>http://www.leobaraldi.com.ar/2007/06/reemplazar-caracteres-o-palablas-en-flash/comment-page-1/#comment-2712</link>
		<dc:creator>Gabriel</dc:creator>
		<pubDate>Thu, 14 Jan 2010 18:14:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.leobaraldi.com.ar/2007/06/09/reemplazar-caracteres-o-palablas-en-flash/#comment-2712</guid>
		<description>Y luego còmo actualizo la info en flash?.

en AS2 usaba algo como:

cadamilisegundos = 20000;
setInterval(cargar_datos_php, cadamilisegundos);</description>
		<content:encoded><![CDATA[<p>Y luego còmo actualizo la info en flash?.</p>
<p>en AS2 usaba algo como:</p>
<p>cadamilisegundos = 20000;<br />
setInterval(cargar_datos_php, cadamilisegundos);</p>
]]></content:encoded>
	</item>
	<item>
		<title>Por: Gabriel</title>
		<link>http://www.leobaraldi.com.ar/2007/06/reemplazar-caracteres-o-palablas-en-flash/comment-page-1/#comment-2711</link>
		<dc:creator>Gabriel</dc:creator>
		<pubDate>Thu, 14 Jan 2010 18:09:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.leobaraldi.com.ar/2007/06/09/reemplazar-caracteres-o-palablas-en-flash/#comment-2711</guid>
		<description>El codigo en php:

echo &quot;&amp;dato2=Al Aire &quot;.$shoutcast-&gt;GetServerGenre().&quot;&quot;;
		echo &quot;&amp;dato1=Titulo &quot;.$shoutcast-&gt;GetCurrentSongTitle().&quot;&quot;;

La salida desde el php:

dato2=Al Aire lakis desde espaÃ±a y grecia para todo el mundo&amp;dato1=Titulo Alejandro Sanz &amp; The Corrs - Una noche 

Creo que eso es correcto. còmo separo los datos en los campos de texto en flash?...Gracias por responder!! :D</description>
		<content:encoded><![CDATA[<p>El codigo en php:</p>
<p>echo "&amp;dato2=Al Aire ".$shoutcast-&gt;GetServerGenre()."";<br />
		echo "&amp;dato1=Titulo ".$shoutcast-&gt;GetCurrentSongTitle()."";</p>
<p>La salida desde el php:</p>
<p>dato2=Al Aire lakis desde espaÃ±a y grecia para todo el mundo&amp;dato1=Titulo Alejandro Sanz &amp; The Corrs - Una noche </p>
<p>Creo que eso es correcto. còmo separo los datos en los campos de texto en flash?...Gracias por responder!! :D</p>
]]></content:encoded>
	</item>
	<item>
		<title>Por: LeoBaraldi</title>
		<link>http://www.leobaraldi.com.ar/2007/06/reemplazar-caracteres-o-palablas-en-flash/comment-page-1/#comment-2700</link>
		<dc:creator>LeoBaraldi</dc:creator>
		<pubDate>Thu, 14 Jan 2010 07:41:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.leobaraldi.com.ar/2007/06/09/reemplazar-caracteres-o-palablas-en-flash/#comment-2700</guid>
		<description>las variables estan separadas por &amp;? colocame la cadena de como devuelve el php</description>
		<content:encoded><![CDATA[<p>las variables estan separadas por &amp;? colocame la cadena de como devuelve el php</p>
]]></content:encoded>
	</item>
	<item>
		<title>Por: Gabriel</title>
		<link>http://www.leobaraldi.com.ar/2007/06/reemplazar-caracteres-o-palablas-en-flash/comment-page-1/#comment-2680</link>
		<dc:creator>Gabriel</dc:creator>
		<pubDate>Wed, 13 Jan 2010 02:02:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.leobaraldi.com.ar/2007/06/09/reemplazar-caracteres-o-palablas-en-flash/#comment-2680</guid>
		<description>tengo este script que recupera dos variables desde un php...


//comienza.
//-- importamos las clases necesarias
import flash.net.*;
import flash.events.*;
import flash.text.TextField;
//-- creamos una instancia de URLLoader para info externa
var loader:URLLoader=new URLLoader();
//-- tipo de info a recibir
loader.dataFormat=URLLoaderDataFormat.VARIABLES;
//-- cual es el archivo que cargaremos
loader.load(new URLRequest(&quot;mostrar.php&quot;));
//-- listener para cuando la carga este completa
loader.addEventListener(Event.COMPLETE,carga);
//-- funcion a ejecutarse
function carga(event:Event) {
var loader:URLLoader= URLLoader(event.target);
//-- creamos el campo de texto donde se mostrara la info del php
var texto:TextField=new TextField();
texto.text=String(loader.data.dato1);

var texto1:TextField=new TextField();
texto1.text=String(loader.data.dato2);

texto.autoSize=&quot;left&quot;;
//-- mostramos el campo de texto
addChild(texto);

texto1.autoSize=&quot;left&quot;;
//-- mostramos el campo de texto
addChild(texto1);
}
//termina

todo bien, excepto que aunque el fla contiene dos campos de texto bien nombrados, el swf recupera ambas variables en un solo campo y se vuelven ilegibles...algun tip?</description>
		<content:encoded><![CDATA[<p>tengo este script que recupera dos variables desde un php...</p>
<p>//comienza.<br />
//-- importamos las clases necesarias<br />
import flash.net.*;<br />
import flash.events.*;<br />
import flash.text.TextField;<br />
//-- creamos una instancia de URLLoader para info externa<br />
var loader:URLLoader=new URLLoader();<br />
//-- tipo de info a recibir<br />
loader.dataFormat=URLLoaderDataFormat.VARIABLES;<br />
//-- cual es el archivo que cargaremos<br />
loader.load(new URLRequest("mostrar.php"));<br />
//-- listener para cuando la carga este completa<br />
loader.addEventListener(Event.COMPLETE,carga);<br />
//-- funcion a ejecutarse<br />
function carga(event:Event) {<br />
var loader:URLLoader= URLLoader(event.target);<br />
//-- creamos el campo de texto donde se mostrara la info del php<br />
var texto:TextField=new TextField();<br />
texto.text=String(loader.data.dato1);</p>
<p>var texto1:TextField=new TextField();<br />
texto1.text=String(loader.data.dato2);</p>
<p>texto.autoSize="left";<br />
//-- mostramos el campo de texto<br />
addChild(texto);</p>
<p>texto1.autoSize="left";<br />
//-- mostramos el campo de texto<br />
addChild(texto1);<br />
}<br />
//termina</p>
<p>todo bien, excepto que aunque el fla contiene dos campos de texto bien nombrados, el swf recupera ambas variables en un solo campo y se vuelven ilegibles...algun tip?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Por: Yon koter</title>
		<link>http://www.leobaraldi.com.ar/2007/06/reemplazar-caracteres-o-palablas-en-flash/comment-page-1/#comment-347</link>
		<dc:creator>Yon koter</dc:creator>
		<pubDate>Mon, 03 Sep 2007 22:49:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.leobaraldi.com.ar/2007/06/09/reemplazar-caracteres-o-palablas-en-flash/#comment-347</guid>
		<description>Simon esta chida la función hace un muy buen paro, tnks</description>
		<content:encoded><![CDATA[<p>Simon esta chida la función hace un muy buen paro, tnks</p>
]]></content:encoded>
	</item>
	<item>
		<title>Por: LeoBaraldi</title>
		<link>http://www.leobaraldi.com.ar/2007/06/reemplazar-caracteres-o-palablas-en-flash/comment-page-1/#comment-239</link>
		<dc:creator>LeoBaraldi</dc:creator>
		<pubDate>Wed, 20 Jun 2007 01:24:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.leobaraldi.com.ar/2007/06/09/reemplazar-caracteres-o-palablas-en-flash/#comment-239</guid>
		<description>Sin palabras!!! muy bueno che!!!
Gracias como siempre Damian!</description>
		<content:encoded><![CDATA[<p>Sin palabras!!! muy bueno che!!!<br />
Gracias como siempre Damian!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Por: Damian</title>
		<link>http://www.leobaraldi.com.ar/2007/06/reemplazar-caracteres-o-palablas-en-flash/comment-page-1/#comment-238</link>
		<dc:creator>Damian</dc:creator>
		<pubDate>Tue, 19 Jun 2007 19:30:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.leobaraldi.com.ar/2007/06/09/reemplazar-caracteres-o-palablas-en-flash/#comment-238</guid>
		<description>Hola leo.
Te mando un bocadillo de como puedes hacer el reemplazo sin bucles. Tuto en una linea

[as]cadena_nueva = mi_cadena.split(&#039;cadenaBuscar&#039;).join(&#039;cadenaReemplazar&#039;);[/as]</description>
		<content:encoded><![CDATA[<p>Hola leo.<br />
Te mando un bocadillo de como puedes hacer el reemplazo sin bucles. Tuto en una linea</p>
<div class="igBar"><span id="lactionscript-2"><a href="#" onclick="javascript:showPlainTxt('actionscript-2'); return false;">Clic para ver Texto Plano</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;">cadena_nueva = mi_cadena.<span style="color: #0066CC;">split</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'cadenaBuscar'</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #0066CC;">join</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'cadenaReemplazar'</span><span style="color: #66cc66;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
]]></content:encoded>
	</item>
</channel>
</rss>

