<?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>Comments on: Programando en AS3 desde Flash CS3 (I)</title>
	<atom:link href="http://llops.com/blog/2007/12/01/programando-en-as3-desde-flash-cs3-i/feed/" rel="self" type="application/rss+xml" />
	<link>http://llops.com/blog/2007/12/01/programando-en-as3-desde-flash-cs3-i/</link>
	<description>Blog de programación creativa mantenido por llops. Experimentos y artículos entorno a la plataforma flash y as3.</description>
	<lastBuildDate>Sat, 07 Jan 2012 15:55:40 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Lorena</title>
		<link>http://llops.com/blog/2007/12/01/programando-en-as3-desde-flash-cs3-i/comment-page-1/#comment-688</link>
		<dc:creator>Lorena</dc:creator>
		<pubDate>Mon, 11 Apr 2011 20:21:47 +0000</pubDate>
		<guid isPermaLink="false">http://llops.com/n/2007/11/12/as3-y-flash-cs3/#comment-688</guid>
		<description>alguna vez te respondieorn como solucionar ese problema q tenias con el boton???</description>
		<content:encoded><![CDATA[<p>alguna vez te respondieorn como solucionar ese problema q tenias con el boton???</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carlos</title>
		<link>http://llops.com/blog/2007/12/01/programando-en-as3-desde-flash-cs3-i/comment-page-1/#comment-431</link>
		<dc:creator>Carlos</dc:creator>
		<pubDate>Fri, 19 Feb 2010 13:09:47 +0000</pubDate>
		<guid isPermaLink="false">http://llops.com/n/2007/11/12/as3-y-flash-cs3/#comment-431</guid>
		<description>Hola, me han pasado los enlaces de tu web porque hacía muchas preguntas en una lista de correo sobre todo esto que estás contando.

Ostras!!!, me has abierto los ojos por fin en muchas cosas, y las personas que te han comunicado sus dudas justamente han preguntado cosas que yo hacía tiempo que no entendía.

Muchas gracias por todo!

Te seguiré en la web, ahora voy a seguir leyendo los demás artículos.

Saludos!!!</description>
		<content:encoded><![CDATA[<p>Hola, me han pasado los enlaces de tu web porque hacía muchas preguntas en una lista de correo sobre todo esto que estás contando.</p>
<p>Ostras!!!, me has abierto los ojos por fin en muchas cosas, y las personas que te han comunicado sus dudas justamente han preguntado cosas que yo hacía tiempo que no entendía.</p>
<p>Muchas gracias por todo!</p>
<p>Te seguiré en la web, ahora voy a seguir leyendo los demás artículos.</p>
<p>Saludos!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Desctrl &#187; Blog Archive &#187; Enlaces Flash</title>
		<link>http://llops.com/blog/2007/12/01/programando-en-as3-desde-flash-cs3-i/comment-page-1/#comment-425</link>
		<dc:creator>Desctrl &#187; Blog Archive &#187; Enlaces Flash</dc:creator>
		<pubDate>Thu, 14 Jan 2010 17:39:00 +0000</pubDate>
		<guid isPermaLink="false">http://llops.com/n/2007/11/12/as3-y-flash-cs3/#comment-425</guid>
		<description>[...] AS3 desde 0 1  [...]</description>
		<content:encoded><![CDATA[<p>[...] AS3 desde 0 1  [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marcos Huerta Hernandez</title>
		<link>http://llops.com/blog/2007/12/01/programando-en-as3-desde-flash-cs3-i/comment-page-1/#comment-361</link>
		<dc:creator>Marcos Huerta Hernandez</dc:creator>
		<pubDate>Sat, 12 Sep 2009 00:25:56 +0000</pubDate>
		<guid isPermaLink="false">http://llops.com/n/2007/11/12/as3-y-flash-cs3/#comment-361</guid>
		<description>muchas gracias a todos ustdes por dedicar un rato de su tiempo para colocar en linea estos magnificos articulos son la guia y la esperanza para que gente como yo puedamos seguir adelante de este grandioso y fantastico mundo de la programacion Multimedia,, muchas gracias a todos que contribuyes en la existencia del sitio....</description>
		<content:encoded><![CDATA[<p>muchas gracias a todos ustdes por dedicar un rato de su tiempo para colocar en linea estos magnificos articulos son la guia y la esperanza para que gente como yo puedamos seguir adelante de este grandioso y fantastico mundo de la programacion Multimedia,, muchas gracias a todos que contribuyes en la existencia del sitio&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pablo</title>
		<link>http://llops.com/blog/2007/12/01/programando-en-as3-desde-flash-cs3-i/comment-page-1/#comment-352</link>
		<dc:creator>pablo</dc:creator>
		<pubDate>Wed, 22 Jul 2009 15:39:56 +0000</pubDate>
		<guid isPermaLink="false">http://llops.com/n/2007/11/12/as3-y-flash-cs3/#comment-352</guid>
		<description>Muchas gracias!, esta información me ha sido de mucha utilidad.</description>
		<content:encoded><![CDATA[<p>Muchas gracias!, esta información me ha sido de mucha utilidad.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: claudio</title>
		<link>http://llops.com/blog/2007/12/01/programando-en-as3-desde-flash-cs3-i/comment-page-1/#comment-350</link>
		<dc:creator>claudio</dc:creator>
		<pubDate>Wed, 15 Jul 2009 07:42:29 +0000</pubDate>
		<guid isPermaLink="false">http://llops.com/n/2007/11/12/as3-y-flash-cs3/#comment-350</guid>
		<description>hola necesito su ayuda soy nuevo en as3 y estoy tratando de cargar  un clip externo en un contenedor pero a la vez que el botón que llama al clip descargue el clip externo que estaba antes en el contenedor  este es código que estaba usando.

[as3] //Boton Contacto

function ircontacto(event:MouseEvent):void 

{ 
   var contenedor = new Loader();
   contenedor.load(new URLRequest(&quot;index3.swf&quot;));
   addChild(contenedor);
} 

function clicked(event:MouseEvent):void {
	root.contenedor.unload();
    root.removeChild(contenedor);
}


BTNS.btn_c.addEventListener(MouseEvent.CLICK, ircontacto); 
BTNS.btn_c.addEventListener(MouseEvent.CLICK, clicked); [/as3]

la primera vez que cargo el botón me funciona pero cuando lo presionó por segunda vez
me carga encima si eliminar el anterior y me sale este error.

ArgumentError: Error #2025: El objeto DisplayObject proporcionado debe ser un elemento secundario del llamador.
	at flash.display::DisplayObjectContainer/removeChild()
	at index_fla::MainTimeline/clicked()

saludos</description>
		<content:encoded><![CDATA[<p>hola necesito su ayuda soy nuevo en as3 y estoy tratando de cargar  un clip externo en un contenedor pero a la vez que el botón que llama al clip descargue el clip externo que estaba antes en el contenedor  este es código que estaba usando.</p>
<div class="igBar"><span id="lactionscript3-1"><a href="#" onclick="javascript:showCodeTxt('actionscript3-1'); return false;">Plain Text</a></span></div>
<div class="syntax_hilite">
<div id="actionscript3-1">
<div class="actionscript3">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#666666;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #F0F; font-style: italic;">//Boton Contacto</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#666666;">
<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:#666666;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #1518ff;">function</span> ircontacto<span style="color: #555;">&#40;</span><span style="color: #000099;">event</span>:<span style="color: #000099;">MouseEvent</span><span style="color: #555;">&#41;</span>:<span style="color: #000099;">void</span> </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#666666;">
<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:#666666;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #555;">&#123;</span> </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#666666;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;<span style="color: #1518ff;">var</span> contenedor = <span style="color: #1518ff;">new</span> <span style="color: #000099;">Loader</span><span style="color: #555;">&#40;</span><span style="color: #555;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#666666;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;contenedor.<span style="color: #555;">load</span><span style="color: #555;">&#40;</span><span style="color: #1518ff;">new</span> <span style="color: #000099;">URLRequest</span><span style="color: #555;">&#40;</span><span style="color: #555;">"index3.swf"</span><span style="color: #555;">&#41;</span><span style="color: #555;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#666666;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;addChild<span style="color: #555;">&#40;</span>contenedor<span style="color: #555;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#666666;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #555;">&#125;</span> </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#666666;">
<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:#666666;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #1518ff;">function</span> clicked<span style="color: #555;">&#40;</span><span style="color: #000099;">event</span>:<span style="color: #000099;">MouseEvent</span><span style="color: #555;">&#41;</span>:<span style="color: #000099;">void</span> <span style="color: #555;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#666666;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; root.<span style="color: #555;">contenedor</span>.<span style="color: #555;">unload</span><span style="color: #555;">&#40;</span><span style="color: #555;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#666666;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; root.<span style="color: #555;">removeChild</span><span style="color: #555;">&#40;</span>contenedor<span style="color: #555;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#666666;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #555;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#666666;">
<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:#666666;">
<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:#666666;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">BTNS.<span style="color: #555;">btn_c</span>.<span style="color: #555;">addEventListener</span><span style="color: #555;">&#40;</span><span style="color: #000099;">MouseEvent</span>.<span style="color: #555;">CLICK</span>, ircontacto<span style="color: #555;">&#41;</span>; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#666666;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">BTNS.<span style="color: #555;">btn_c</span>.<span style="color: #555;">addEventListener</span><span style="color: #555;">&#40;</span><span style="color: #000099;">MouseEvent</span>.<span style="color: #555;">CLICK</span>, clicked<span style="color: #555;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>la primera vez que cargo el botón me funciona pero cuando lo presionó por segunda vez<br />
me carga encima si eliminar el anterior y me sale este error.</p>
<p>ArgumentError: Error #2025: El objeto DisplayObject proporcionado debe ser un elemento secundario del llamador.<br />
	at flash.display::DisplayObjectContainer/removeChild()<br />
	at index_fla::MainTimeline/clicked()</p>
<p>saludos</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: llops</title>
		<link>http://llops.com/blog/2007/12/01/programando-en-as3-desde-flash-cs3-i/comment-page-1/#comment-324</link>
		<dc:creator>llops</dc:creator>
		<pubDate>Wed, 18 Mar 2009 19:39:23 +0000</pubDate>
		<guid isPermaLink="false">http://llops.com/n/2007/11/12/as3-y-flash-cs3/#comment-324</guid>
		<description>Gracias! Y prometo volver algún día :)</description>
		<content:encoded><![CDATA[<p>Gracias! Y prometo volver algún día :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: brujilla88</title>
		<link>http://llops.com/blog/2007/12/01/programando-en-as3-desde-flash-cs3-i/comment-page-1/#comment-323</link>
		<dc:creator>brujilla88</dc:creator>
		<pubDate>Wed, 18 Mar 2009 18:02:08 +0000</pubDate>
		<guid isPermaLink="false">http://llops.com/n/2007/11/12/as3-y-flash-cs3/#comment-323</guid>
		<description>Enhorabuena LLops!!!!!
Se agradece encontrar explicaciones tan claras!!!! me han encantado tus articulos y la verdad es que me han servido de mucha ayuda!! 
(Espero que sigas escribiendo!!  =P jeje) 
Un saludo!</description>
		<content:encoded><![CDATA[<p>Enhorabuena LLops!!!!!<br />
Se agradece encontrar explicaciones tan claras!!!! me han encantado tus articulos y la verdad es que me han servido de mucha ayuda!!<br />
(Espero que sigas escribiendo!!  =P jeje)<br />
Un saludo!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: llops</title>
		<link>http://llops.com/blog/2007/12/01/programando-en-as3-desde-flash-cs3-i/comment-page-1/#comment-259</link>
		<dc:creator>llops</dc:creator>
		<pubDate>Thu, 20 Nov 2008 09:16:37 +0000</pubDate>
		<guid isPermaLink="false">http://llops.com/n/2007/11/12/as3-y-flash-cs3/#comment-259</guid>
		<description>Básicamente es lo mismo, solo que hay que hacer un casting de &quot;parent&quot; para que el compilador no te dé un error:
[as3]var miOtroString:String = MovieClip(parent).bola.bolita.miString;
trace(miOtroString);[/as3]

Mírate el segundo artículo de esta serie que precisamente se explica esto.</description>
		<content:encoded><![CDATA[<p>Básicamente es lo mismo, solo que hay que hacer un casting de "parent" para que el compilador no te dé un error:</p>
<div class="igBar"><span id="lactionscript3-2"><a href="#" onclick="javascript:showCodeTxt('actionscript3-2'); return false;">Plain Text</a></span></div>
<div class="syntax_hilite">
<div id="actionscript3-2">
<div class="actionscript3">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#666666;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #1518ff;">var</span> miOtroString:<span style="color: #000099;">String</span> = <span style="color: #000099;">MovieClip</span><span style="color: #555;">&#40;</span>parent<span style="color: #555;">&#41;</span>.<span style="color: #555;">bola</span>.<span style="color: #555;">bolita</span>.<span style="color: #555;">miString</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#666666;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">trace<span style="color: #555;">&#40;</span>miOtroString<span style="color: #555;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Mírate el segundo artículo de esta serie que precisamente se explica esto.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Negro</title>
		<link>http://llops.com/blog/2007/12/01/programando-en-as3-desde-flash-cs3-i/comment-page-1/#comment-258</link>
		<dc:creator>Negro</dc:creator>
		<pubDate>Thu, 20 Nov 2008 02:47:11 +0000</pubDate>
		<guid isPermaLink="false">http://llops.com/n/2007/11/12/as3-y-flash-cs3/#comment-258</guid>
		<description>¿Cómo acceder en AS3 a variables de movieclips diferentes? 
Supongamos que tenemos dos movieclips en el escenario, instanciados, respectivamente, con el nombre de cuadro y bola. Resulta que bola es, además, un contenedor de otro movieclip de nombre bolita. Algo como esto:
                                             [cuadro]                       [bola--&gt;bolita]                          

En el fotograma 1 del movieclip bolita tengo el siguiente código:
                [as3] var miString:String = &quot;Hola&quot;;[/as3]

Mi pregunta es, ¿cómo acceder, desde el movieclip cuadro, a la variable &quot;miString&quot; que está en bolita?

En AS2, esto se resolvía más o menos así:
                [as3] var miOtroString:String = this._parent.bola.bolita.miString;[/as3]

En AS3, ¿cómo sería?</description>
		<content:encoded><![CDATA[<p>¿Cómo acceder en AS3 a variables de movieclips diferentes?<br />
Supongamos que tenemos dos movieclips en el escenario, instanciados, respectivamente, con el nombre de cuadro y bola. Resulta que bola es, además, un contenedor de otro movieclip de nombre bolita. Algo como esto:<br />
                                             [cuadro]                       [bola--&gt;bolita]                          </p>
<p>En el fotograma 1 del movieclip bolita tengo el siguiente código:</p>
<div class="igBar"><span id="lactionscript3-3"><a href="#" onclick="javascript:showCodeTxt('actionscript3-3'); return false;">Plain Text</a></span></div>
<div class="syntax_hilite">
<div id="actionscript3-3">
<div class="actionscript3">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#666666;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #1518ff;">var</span> miString:<span style="color: #000099;">String</span> = <span style="color: #555;">"Hola"</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Mi pregunta es, ¿cómo acceder, desde el movieclip cuadro, a la variable "miString" que está en bolita?</p>
<p>En AS2, esto se resolvía más o menos así:</p>
<div class="igBar"><span id="lactionscript3-4"><a href="#" onclick="javascript:showCodeTxt('actionscript3-4'); return false;">Plain Text</a></span></div>
<div class="syntax_hilite">
<div id="actionscript3-4">
<div class="actionscript3">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#666666;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #1518ff;">var</span> miOtroString:<span style="color: #000099;">String</span> = <span style="color: #000099;">this</span>._parent.<span style="color: #555;">bola</span>.<span style="color: #555;">bolita</span>.<span style="color: #555;">miString</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>En AS3, ¿cómo sería?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

