<?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: Accediendo al stage antes de tiempo</title>
	<atom:link href="http://llops.com/blog/2008/02/18/accediendo-al-stage-antes-de-tiempo/feed/" rel="self" type="application/rss+xml" />
	<link>http://llops.com/blog/2008/02/18/accediendo-al-stage-antes-de-tiempo/</link>
	<description>Blog de programación creativa mantenido por llops. Experimentos y artículos entorno a la plataforma flash y as3.</description>
	<lastBuildDate>Mon, 09 Jan 2012 17:07:11 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: pulgososms</title>
		<link>http://llops.com/blog/2008/02/18/accediendo-al-stage-antes-de-tiempo/comment-page-1/#comment-807</link>
		<dc:creator>pulgososms</dc:creator>
		<pubDate>Thu, 26 May 2011 10:05:06 +0000</pubDate>
		<guid isPermaLink="false">http://llops.com/blog/2008/02/18/accediendo-al-stage-antes-de-tiempo/#comment-807</guid>
		<description>Bueno, sencillamente genial... Gracias por este aporte tan bien explicado :)</description>
		<content:encoded><![CDATA[<p>Bueno, sencillamente genial&#8230; Gracias por este aporte tan bien explicado :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tchavez</title>
		<link>http://llops.com/blog/2008/02/18/accediendo-al-stage-antes-de-tiempo/comment-page-1/#comment-648</link>
		<dc:creator>Tchavez</dc:creator>
		<pubDate>Mon, 28 Feb 2011 18:42:21 +0000</pubDate>
		<guid isPermaLink="false">http://llops.com/blog/2008/02/18/accediendo-al-stage-antes-de-tiempo/#comment-648</guid>
		<description>Hola soy nuevo en flash y estoy aprendiendo. En as3 acabo de generar esto para poder hacer un formulario para mi pag web sin embargo tengo error Error #1009 y no se como solucionarlo. Ojala me pudieran ayudar. Un saludo!!!

&lt;a href=&quot;http://llops.com/blog/content/comments-code/codigo_tchavez_28022011.txt&quot; rel=&quot;nofollow&quot;&gt;Ver código&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Hola soy nuevo en flash y estoy aprendiendo. En as3 acabo de generar esto para poder hacer un formulario para mi pag web sin embargo tengo error Error #1009 y no se como solucionarlo. Ojala me pudieran ayudar. Un saludo!!!</p>
<p><a href="http://llops.com/blog/content/comments-code/codigo_tchavez_28022011.txt" rel="nofollow">Ver código</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sergio</title>
		<link>http://llops.com/blog/2008/02/18/accediendo-al-stage-antes-de-tiempo/comment-page-1/#comment-608</link>
		<dc:creator>Sergio</dc:creator>
		<pubDate>Fri, 31 Dec 2010 17:28:00 +0000</pubDate>
		<guid isPermaLink="false">http://llops.com/blog/2008/02/18/accediendo-al-stage-antes-de-tiempo/#comment-608</guid>
		<description>Muy buen tip. Gracias amigo. Me sacaste de un problema de hace casi 2 horas.</description>
		<content:encoded><![CDATA[<p>Muy buen tip. Gracias amigo. Me sacaste de un problema de hace casi 2 horas.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: elmanusito</title>
		<link>http://llops.com/blog/2008/02/18/accediendo-al-stage-antes-de-tiempo/comment-page-1/#comment-543</link>
		<dc:creator>elmanusito</dc:creator>
		<pubDate>Tue, 16 Nov 2010 02:54:24 +0000</pubDate>
		<guid isPermaLink="false">http://llops.com/blog/2008/02/18/accediendo-al-stage-antes-de-tiempo/#comment-543</guid>
		<description>Excelente tip!!!! excelente!!!! me salvaste cabezón!!! gracias!!!!</description>
		<content:encoded><![CDATA[<p>Excelente tip!!!! excelente!!!! me salvaste cabezón!!! gracias!!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adrian</title>
		<link>http://llops.com/blog/2008/02/18/accediendo-al-stage-antes-de-tiempo/comment-page-1/#comment-506</link>
		<dc:creator>Adrian</dc:creator>
		<pubDate>Fri, 27 Aug 2010 18:59:25 +0000</pubDate>
		<guid isPermaLink="false">http://llops.com/blog/2008/02/18/accediendo-al-stage-antes-de-tiempo/#comment-506</guid>
		<description>De nuevo yo, con respecto al problema que me da al intentar cargar un swf externo, dejo el codigo as3 que tengo desde una clase y el cual lo intento cargar desde la linea de tiempo.
Estaria chido que me pudieran ayudar ya que no he podido solucionar este problema.
Como dices en tu post addedToStage creo que es lo que me falta poner para solucionar esto, pero no encuentro en donde colocarlo.

&lt;a href=&quot;http://llops.com/blog/content/comments-code/codigo_adrian_27082010.txt&quot; rel=&quot;nofollow&quot;&gt;Ver código&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>De nuevo yo, con respecto al problema que me da al intentar cargar un swf externo, dejo el codigo as3 que tengo desde una clase y el cual lo intento cargar desde la linea de tiempo.<br />
Estaria chido que me pudieran ayudar ya que no he podido solucionar este problema.<br />
Como dices en tu post addedToStage creo que es lo que me falta poner para solucionar esto, pero no encuentro en donde colocarlo.</p>
<p><a href="http://llops.com/blog/content/comments-code/codigo_adrian_27082010.txt" rel="nofollow">Ver código</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adrian</title>
		<link>http://llops.com/blog/2008/02/18/accediendo-al-stage-antes-de-tiempo/comment-page-1/#comment-505</link>
		<dc:creator>Adrian</dc:creator>
		<pubDate>Thu, 26 Aug 2010 21:32:24 +0000</pubDate>
		<guid isPermaLink="false">http://llops.com/blog/2008/02/18/accediendo-al-stage-antes-de-tiempo/#comment-505</guid>
		<description>Hola, chido el post y llegue aqui en busqueda de la solucion al error #1009 y asi esta la cosa
estoy incorporando un portafolio a una pagina el cual es una galeria de imagenes que carga las fotos desde un archivo xml, todo esta esta bien, pero cuando quiero cargar este swf en una pagina externa (la pagina principal)me aparece este error.
La galeria esta creada desde una clase as3.</description>
		<content:encoded><![CDATA[<p>Hola, chido el post y llegue aqui en busqueda de la solucion al error #1009 y asi esta la cosa<br />
estoy incorporando un portafolio a una pagina el cual es una galeria de imagenes que carga las fotos desde un archivo xml, todo esta esta bien, pero cuando quiero cargar este swf en una pagina externa (la pagina principal)me aparece este error.<br />
La galeria esta creada desde una clase as3.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kaus</title>
		<link>http://llops.com/blog/2008/02/18/accediendo-al-stage-antes-de-tiempo/comment-page-1/#comment-493</link>
		<dc:creator>Kaus</dc:creator>
		<pubDate>Sat, 29 May 2010 05:00:26 +0000</pubDate>
		<guid isPermaLink="false">http://llops.com/blog/2008/02/18/accediendo-al-stage-antes-de-tiempo/#comment-493</guid>
		<description>gracias men  si no encuentro esto para evitar ese error no se que haria ya me estaba desesperando me fue de gran ayuda, creeme  muchas gracias</description>
		<content:encoded><![CDATA[<p>gracias men  si no encuentro esto para evitar ese error no se que haria ya me estaba desesperando me fue de gran ayuda, creeme  muchas gracias</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: aquiles perez</title>
		<link>http://llops.com/blog/2008/02/18/accediendo-al-stage-antes-de-tiempo/comment-page-1/#comment-457</link>
		<dc:creator>aquiles perez</dc:creator>
		<pubDate>Sat, 27 Feb 2010 18:19:20 +0000</pubDate>
		<guid isPermaLink="false">http://llops.com/blog/2008/02/18/accediendo-al-stage-antes-de-tiempo/#comment-457</guid>
		<description>Hola todos, tengo una dudilla, por que este codigo no me trabaja, cuando creo un objeto en un frame de flash, no me muestra nada, sin embargo cuando agrego addChild(new GrettingApp) si trabaja, alguien me puede decir como puedo mostrar los graficos de esta clase sin poner esa instruccion, ya se que el stage es el tope, pero necesito referirme a el desde mi clase.
 
 saludos


[as3] 
package {
	import flash.display.*;
	import flash.text.TextField;
	
    public class GreetingApp extends Sprite {
		public function GreetingApp( ) {
            // Create the Shape object
            var rectAndCircle:Shape = new Shape( );
            // Set line thickness to one pixel
            rectAndCircle.graphics.lineStyle(1);
            // Draw a blue rectangle
            rectAndCircle.graphics.beginFill(0x0000FF, 1);
            rectAndCircle.graphics.drawRect(125, 0, 150, 75);
            // Draw a red circle
            rectAndCircle.graphics.beginFill(0xFF0000, 1);
            rectAndCircle.graphics.drawCircle(50, 100, 50);
            // Move the shape to the right 125 pixels and down 100 pixels
            rectAndCircle.x = 125;
            rectAndCircle.y = 100;
            // Show rectAndCircle on screen by adding it to the display list
            addChild(rectAndCircle);
            // Create a TextField object to contain some text
            var greeting_txt:TextField = new TextField( );
            // Specify the text to display
            greeting_txt.text = &quot;Hello world&quot;;
            // Position the text
            greeting_txt.x = 200;
            greeting_txt.y = 300;
            // Show the text on screen by adding greeting_txt to the display list
            addChild(greeting_txt);
	    }
	}
}
[/as3]</description>
		<content:encoded><![CDATA[<p>Hola todos, tengo una dudilla, por que este codigo no me trabaja, cuando creo un objeto en un frame de flash, no me muestra nada, sin embargo cuando agrego addChild(new GrettingApp) si trabaja, alguien me puede decir como puedo mostrar los graficos de esta clase sin poner esa instruccion, ya se que el stage es el tope, pero necesito referirme a el desde mi clase.</p>
<p> saludos</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: #1518ff;">package</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; <span style="color: #1518ff;">import</span> flash.<span style="color: #555;">display</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;">import</span> flash.<span style="color: #555;">text</span>.<span style="color: #000099;">TextField</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; </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;">public</span> <span style="color: #1518ff;">class</span> GreetingApp <span style="color: #1518ff;">extends</span> <span style="color: #000099;">Sprite</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; &nbsp; &nbsp; <span style="color: #1518ff;">public</span> <span style="color: #1518ff;">function</span> GreetingApp<span style="color: #555;">&#40;</span> <span style="color: #555;">&#41;</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; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #F0F; font-style: italic;">// Create the Shape object</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; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #1518ff;">var</span> rectAndCircle:<span style="color: #000099;">Shape</span> = <span style="color: #1518ff;">new</span> <span style="color: #000099;">Shape</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; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #F0F; font-style: italic;">// Set line thickness to one pixel</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; &nbsp; &nbsp; &nbsp; &nbsp; rectAndCircle.<span style="color: #000099;">graphics</span>.<span style="color: #555;">lineStyle</span><span style="color: #555;">&#40;</span><span style="color: #FF0000;color:#000099;">1</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; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #F0F; font-style: italic;">// Draw a blue rectangle</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; &nbsp; &nbsp; &nbsp; &nbsp; rectAndCircle.<span style="color: #000099;">graphics</span>.<span style="color: #555;">beginFill</span><span style="color: #555;">&#40;</span>0x0000FF, <span style="color: #FF0000;color:#000099;">1</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; &nbsp; &nbsp; &nbsp; &nbsp; rectAndCircle.<span style="color: #000099;">graphics</span>.<span style="color: #555;">drawRect</span><span style="color: #555;">&#40;</span><span style="color: #FF0000;color:#000099;">125</span>, <span style="color: #FF0000;color:#000099;">0</span>, <span style="color: #FF0000;color:#000099;">150</span>, <span style="color: #FF0000;color:#000099;">75</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; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #F0F; font-style: italic;">// Draw a red circle</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; &nbsp; &nbsp; &nbsp; &nbsp; rectAndCircle.<span style="color: #000099;">graphics</span>.<span style="color: #555;">beginFill</span><span style="color: #555;">&#40;</span>0xFF0000, <span style="color: #FF0000;color:#000099;">1</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; &nbsp; &nbsp; &nbsp; &nbsp; rectAndCircle.<span style="color: #000099;">graphics</span>.<span style="color: #555;">drawCircle</span><span style="color: #555;">&#40;</span><span style="color: #FF0000;color:#000099;">50</span>, <span style="color: #FF0000;color:#000099;">100</span>, <span style="color: #FF0000;color:#000099;">50</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; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #F0F; font-style: italic;">// Move the shape to the right 125 pixels and down 100 pixels</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; &nbsp; &nbsp; &nbsp; &nbsp; rectAndCircle.<span style="color: #555;">x</span> = <span style="color: #FF0000;color:#000099;">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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rectAndCircle.<span style="color: #555;">y</span> = <span style="color: #FF0000;color:#000099;">100</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; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #F0F; font-style: italic;">// Show rectAndCircle on screen by adding it to the display list</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; &nbsp; &nbsp; &nbsp; &nbsp; addChild<span style="color: #555;">&#40;</span>rectAndCircle<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; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #F0F; font-style: italic;">// Create a TextField object to contain some text</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; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #1518ff;">var</span> greeting_txt:<span style="color: #000099;">TextField</span> = <span style="color: #1518ff;">new</span> <span style="color: #000099;">TextField</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; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #F0F; font-style: italic;">// Specify the text to display</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; &nbsp; &nbsp; &nbsp; &nbsp; greeting_txt.<span style="color: #555;">text</span> = <span style="color: #555;">"Hello world"</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; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #F0F; font-style: italic;">// Position the text</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; &nbsp; &nbsp; &nbsp; &nbsp; greeting_txt.<span style="color: #555;">x</span> = <span style="color: #FF0000;color:#000099;">200</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; &nbsp; &nbsp; &nbsp; &nbsp; greeting_txt.<span style="color: #555;">y</span> = <span style="color: #FF0000;color:#000099;">300</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; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #F0F; font-style: italic;">// Show the text on screen by adding greeting_txt to the display list</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; &nbsp; &nbsp; &nbsp; &nbsp; addChild<span style="color: #555;">&#40;</span>greeting_txt<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;&nbsp; &nbsp; &nbsp;<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; &nbsp; <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;"><span style="color: #555;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nilson</title>
		<link>http://llops.com/blog/2008/02/18/accediendo-al-stage-antes-de-tiempo/comment-page-1/#comment-421</link>
		<dc:creator>Nilson</dc:creator>
		<pubDate>Thu, 07 Jan 2010 05:47:54 +0000</pubDate>
		<guid isPermaLink="false">http://llops.com/blog/2008/02/18/accediendo-al-stage-antes-de-tiempo/#comment-421</guid>
		<description>Hola, creo que tengo el mismo problema que Matìas, pues los Movieclips los tengo ya en el escenariom pero al pulsar un botòn dentro de un MC que me dirija al Escenario principal, me arroja el error

aqui el còdigo dentro de un MC


[as3]grafico_BTN.addEventListener(MouseEvent.MOUSE_DOWN,grafico);

function grafico(Event:MouseEvent):void {
	root.imagen_mc.gotoAndStop(113);
}[/as3]</description>
		<content:encoded><![CDATA[<p>Hola, creo que tengo el mismo problema que Matìas, pues los Movieclips los tengo ya en el escenariom pero al pulsar un botòn dentro de un MC que me dirija al Escenario principal, me arroja el error</p>
<p>aqui el còdigo dentro de un MC</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;">grafico_BTN.<span style="color: #555;">addEventListener</span><span style="color: #555;">&#40;</span><span style="color: #000099;">MouseEvent</span>.<span style="color: #555;">MOUSE_DOWN</span>,grafico<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;</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> grafico<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;">imagen_mc</span>.<span style="color: #555;">gotoAndStop</span><span style="color: #555;">&#40;</span><span style="color: #FF0000;color:#000099;">113</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;"><span style="color: #555;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ccenta</title>
		<link>http://llops.com/blog/2008/02/18/accediendo-al-stage-antes-de-tiempo/comment-page-1/#comment-390</link>
		<dc:creator>Ccenta</dc:creator>
		<pubDate>Sat, 03 Oct 2009 21:17:34 +0000</pubDate>
		<guid isPermaLink="false">http://llops.com/blog/2008/02/18/accediendo-al-stage-antes-de-tiempo/#comment-390</guid>
		<description>Hola y gracias por el post, pero la misma dura me persiste a mi, por favor podria darme un pequeña ayuda.

Soy novato en todo esto. Resulta q estoy haciendo una pequeña aplicacion en actionscript 3.0 que desde una clase as3 todo ese pequeño trozo de codigo, intento llamarlo desde el mismo reproductor fla, la clase as3, dentro de esa clase tengo un parametro de MovieClip y desde el reproductor aplicando su parametro movieclip me vota cierto error

1120: Acceso a una propiedad stage no definida
1120: Acceso a una propiedad stage no definida

[as3]
package
{
    import flash.display.MovieClip;

    public class Centrar
    {
	    public var miclip:MovieClip = new MovieClip();
    	public function Centrar (clip):void
    	{
            miclip = clip;
            miclip.x = (stage.stageWidth - miclip.width) / 2;
            miclip.y = (stage.stageHeight - miclip.height) / 2;        
        }
    }
}
[/as3]

y lo llamo asi

[as3]import Centrar;
var movi:Centrar = new Centrar(cuadro_mc);[/as3]

press control + enter y me vota este error

1120: Acceso a una propiedad stage no definida
1120: Acceso a una propiedad stage no definida

lo q intento es querer llamar por via codigo import, no por el mismo documento principal donde nada mas se pone el nombre de la clase, por favor ayuden</description>
		<content:encoded><![CDATA[<p>Hola y gracias por el post, pero la misma dura me persiste a mi, por favor podria darme un pequeña ayuda.</p>
<p>Soy novato en todo esto. Resulta q estoy haciendo una pequeña aplicacion en actionscript 3.0 que desde una clase as3 todo ese pequeño trozo de codigo, intento llamarlo desde el mismo reproductor fla, la clase as3, dentro de esa clase tengo un parametro de MovieClip y desde el reproductor aplicando su parametro movieclip me vota cierto error</p>
<p>1120: Acceso a una propiedad stage no definida<br />
1120: Acceso a una propiedad stage no definida</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;">package</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;">&#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;">import</span> flash.<span style="color: #555;">display</span>.<span style="color: #000099;">MovieClip</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; &nbsp; <span style="color: #1518ff;">public</span> <span style="color: #1518ff;">class</span> Centrar</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: #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;&nbsp; &nbsp; &nbsp;<span style="color: #1518ff;">public</span> <span style="color: #1518ff;">var</span> miclip:<span style="color: #000099;">MovieClip</span> = <span style="color: #1518ff;">new</span> <span style="color: #000099;">MovieClip</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; &nbsp; &nbsp; <span style="color: #1518ff;">public</span> <span style="color: #1518ff;">function</span> Centrar <span style="color: #555;">&#40;</span>clip<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; &nbsp; &nbsp; &nbsp; <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; &nbsp; &nbsp; &nbsp; &nbsp; miclip = clip;</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; &nbsp; &nbsp; &nbsp; &nbsp; miclip.<span style="color: #555;">x</span> = <span style="color: #555;">&#40;</span><span style="color: #000099;">stage</span>.<span style="color: #555;">stageWidth</span> - miclip.<span style="color: #555;">width</span><span style="color: #555;">&#41;</span> / <span style="color: #FF0000;color:#000099;">2</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; &nbsp; &nbsp; &nbsp; &nbsp; miclip.<span style="color: #555;">y</span> = <span style="color: #555;">&#40;</span><span style="color: #000099;">stage</span>.<span style="color: #555;">stageHeight</span> - miclip.<span style="color: #555;">height</span><span style="color: #555;">&#41;</span> / <span style="color: #FF0000;color:#000099;">2</span>;&nbsp; &nbsp; &nbsp; &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; &nbsp; &nbsp; &nbsp; <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; &nbsp; <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;"><span style="color: #555;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>y lo llamo asi</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;">import</span> Centrar;</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;">var</span> movi:Centrar = <span style="color: #1518ff;">new</span> Centrar<span style="color: #555;">&#40;</span>cuadro_mc<span style="color: #555;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>press control + enter y me vota este error</p>
<p>1120: Acceso a una propiedad stage no definida<br />
1120: Acceso a una propiedad stage no definida</p>
<p>lo q intento es querer llamar por via codigo import, no por el mismo documento principal donde nada mas se pone el nombre de la clase, por favor ayuden</p>
]]></content:encoded>
	</item>
</channel>
</rss>

