<?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: Is now a good time to start using Event.ADDED_TO_STAGE vs. your class constructor for initialaztion?</title>
	<atom:link href="http://www.as3apex.com/uncategorized/is-now-a-good-time-to-start-using-eventadded_to_stage-vs-your-class-constructor-for-initialaztion/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.as3apex.com/uncategorized/is-now-a-good-time-to-start-using-eventadded_to_stage-vs-your-class-constructor-for-initialaztion/</link>
	<description>At the top of our game in st.Louis</description>
	<lastBuildDate>Fri, 27 Aug 2010 21:31:06 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Og2t</title>
		<link>http://www.as3apex.com/uncategorized/is-now-a-good-time-to-start-using-eventadded_to_stage-vs-your-class-constructor-for-initialaztion/comment-page-1/#comment-320</link>
		<dc:creator>Og2t</dc:creator>
		<pubDate>Thu, 02 Jul 2009 09:32:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.as3apex.com/?p=58#comment-320</guid>
		<description>I always do this:

		public function Constructor(stageInit:Boolean = false) 
		{
			if (stageInit) addEventListener(Event.ADDED_TO_STAGE, init, false, 0, true);
		}
		
		public function init(event:Event = null):void
		{
			removeEventListener(Event.ADDED_TO_STAGE, init);
		}

so if the class gets added to the display list, it&#039;s possible enable init. Or, you call call the init method manually. Removing the listener prevents calling init a few times when you nest the objects.</description>
		<content:encoded><![CDATA[<p>I always do this:</p>
<p>		public function Constructor(stageInit:Boolean = false)<br />
		{<br />
			if (stageInit) addEventListener(Event.ADDED_TO_STAGE, init, false, 0, true);<br />
		}</p>
<p>		public function init(event:Event = null):void<br />
		{<br />
			removeEventListener(Event.ADDED_TO_STAGE, init);<br />
		}</p>
<p>so if the class gets added to the display list, it&#8217;s possible enable init. Or, you call call the init method manually. Removing the listener prevents calling init a few times when you nest the objects.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh Chernoff</title>
		<link>http://www.as3apex.com/uncategorized/is-now-a-good-time-to-start-using-eventadded_to_stage-vs-your-class-constructor-for-initialaztion/comment-page-1/#comment-206</link>
		<dc:creator>Josh Chernoff</dc:creator>
		<pubDate>Mon, 24 Nov 2008 13:06:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.as3apex.com/?p=58#comment-206</guid>
		<description>Would you guys say it&#039;s a standard already then? The only reason I ask is until I seen it in flashDevelop I never seen it any where in the community for flash.  And you guys are the first I have ever seen say to do it this way.

Maybe I&#039;m just not hanging out with the cool kids, lol.</description>
		<content:encoded><![CDATA[<p>Would you guys say it&#8217;s a standard already then? The only reason I ask is until I seen it in flashDevelop I never seen it any where in the community for flash.  And you guys are the first I have ever seen say to do it this way.</p>
<p>Maybe I&#8217;m just not hanging out with the cool kids, lol.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jacob</title>
		<link>http://www.as3apex.com/uncategorized/is-now-a-good-time-to-start-using-eventadded_to_stage-vs-your-class-constructor-for-initialaztion/comment-page-1/#comment-205</link>
		<dc:creator>jacob</dc:creator>
		<pubDate>Mon, 24 Nov 2008 04:47:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.as3apex.com/?p=58#comment-205</guid>
		<description>I have been leaning to using the constructor to set properties (not involving a stage) and having most classes have a start() function</description>
		<content:encoded><![CDATA[<p>I have been leaning to using the constructor to set properties (not involving a stage) and having most classes have a start() function</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: katopz</title>
		<link>http://www.as3apex.com/uncategorized/is-now-a-good-time-to-start-using-eventadded_to_stage-vs-your-class-constructor-for-initialaztion/comment-page-1/#comment-204</link>
		<dc:creator>katopz</dc:creator>
		<pubDate>Mon, 24 Nov 2008 04:25:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.as3apex.com/?p=58#comment-204</guid>
		<description>Flash Develop already have template for this</description>
		<content:encoded><![CDATA[<p>Flash Develop already have template for this</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jrx</title>
		<link>http://www.as3apex.com/uncategorized/is-now-a-good-time-to-start-using-eventadded_to_stage-vs-your-class-constructor-for-initialaztion/comment-page-1/#comment-203</link>
		<dc:creator>jrx</dc:creator>
		<pubDate>Mon, 24 Nov 2008 02:06:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.as3apex.com/?p=58#comment-203</guid>
		<description>I do this regularly, and use constructor for init.</description>
		<content:encoded><![CDATA[<p>I do this regularly, and use constructor for init.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
