<?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: How to pass parameters components	</title>
	<atom:link href="https://jessewarden.com/2003/05/how-to-pass-parameters-components.html/feed" rel="self" type="application/rss+xml" />
	<link>https://jessewarden.com/2003/05/how-to-pass-parameters-components.html</link>
	<description>Software &#124; Fitness &#124; Gaming</description>
	<lastBuildDate>Wed, 28 May 2003 23:38:35 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: zwetan		</title>
		<link>https://jessewarden.com/2003/05/how-to-pass-parameters-components.html/comment-page-1#comment-444</link>

		<dc:creator><![CDATA[zwetan]]></dc:creator>
		<pubDate>Wed, 28 May 2003 23:38:35 +0000</pubDate>
		<guid isPermaLink="false">http://jessewarden.com/?p=153#comment-444</guid>

					<description><![CDATA[[quote]So how do you initialize your components just like a class? [/quote]

I don&#039;t inherit with:
blah.prototype = new MovieClip()

and I block the constructor to be called from Object.registerClass with ASNew()

then I declare a setter in the MovieClip.prototype which gonna instantiate the &quot;special&quot; class

that way I can instanciate class linked to librarie movieclip that way:

setRect( &quot;myRect&quot;, 0, 0, 100, 200 );

passing directly the arguments to the constructors in 1 line,
no attachMovie, init method or other non-logical stuff

more info here (in french):
&#060;a href=&quot;news://flashcodeurs.dyndns.org/jrCs3tEEDHA.3336@YAMA&quot;&#062;[FMX] component in your AS&#060;/a&#062;
]]></description>
			<content:encoded><![CDATA[<p>[quote]So how do you initialize your components just like a class? [/quote]</p>
<p>I don&#8217;t inherit with:<br />
blah.prototype = new MovieClip()</p>
<p>and I block the constructor to be called from Object.registerClass with ASNew()</p>
<p>then I declare a setter in the MovieClip.prototype which gonna instantiate the &#8220;special&#8221; class</p>
<p>that way I can instanciate class linked to librarie movieclip that way:</p>
<p>setRect( &#8220;myRect&#8221;, 0, 0, 100, 200 );</p>
<p>passing directly the arguments to the constructors in 1 line,<br />
no attachMovie, init method or other non-logical stuff</p>
<p>more info here (in french):<br />
&lt;a href=&#8221;news://flashcodeurs.dyndns.org/jrCs3tEEDHA.3336@YAMA&#8221;&gt;[FMX] component in your AS&lt;/a&gt;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: JesterXL		</title>
		<link>https://jessewarden.com/2003/05/how-to-pass-parameters-components.html/comment-page-1#comment-443</link>

		<dc:creator><![CDATA[JesterXL]]></dc:creator>
		<pubDate>Wed, 28 May 2003 03:06:26 +0000</pubDate>
		<guid isPermaLink="false">http://jessewarden.com/?p=153#comment-443</guid>

					<description><![CDATA[wtf... I&#039;ll stick to my if thens, then, hehe!]]></description>
			<content:encoded><![CDATA[<p>wtf&#8230; I&#8217;ll stick to my if thens, then, hehe!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Jonas Galvez		</title>
		<link>https://jessewarden.com/2003/05/how-to-pass-parameters-components.html/comment-page-1#comment-442</link>

		<dc:creator><![CDATA[Jonas Galvez]]></dc:creator>
		<pubDate>Wed, 28 May 2003 03:00:48 +0000</pubDate>
		<guid isPermaLink="false">http://jessewarden.com/?p=153#comment-442</guid>

					<description><![CDATA[Naw... mine is readble...
Compare to this lol...

var test1;
for(;test1 == null; test1 = 1);
trace(test1);

var test2= 1;
for(;test2 == null; test2 = 1);
trace(test2);]]></description>
			<content:encoded><![CDATA[<p>Naw&#8230; mine is readble&#8230;<br />
Compare to this lol&#8230;</p>
<p>var test1;<br />
for(;test1 == null; test1 = 1);<br />
trace(test1);</p>
<p>var test2= 1;<br />
for(;test2 == null; test2 = 1);<br />
trace(test2);</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: JesterXL		</title>
		<link>https://jessewarden.com/2003/05/how-to-pass-parameters-components.html/comment-page-1#comment-441</link>

		<dc:creator><![CDATA[JesterXL]]></dc:creator>
		<pubDate>Wed, 28 May 2003 02:55:51 +0000</pubDate>
		<guid isPermaLink="false">http://jessewarden.com/?p=153#comment-441</guid>

					<description><![CDATA[But let&#039;s say foo already equals &quot;bar&quot;.  If that&#039;s the case, there is no point for the else statement, or is there?

Either way, I love how concise this is getting.  Micro-coding... rock.]]></description>
			<content:encoded><![CDATA[<p>But let&#8217;s say foo already equals &#8220;bar&#8221;.  If that&#8217;s the case, there is no point for the else statement, or is there?</p>
<p>Either way, I love how concise this is getting.  Micro-coding&#8230; rock.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Jonas Galvez		</title>
		<link>https://jessewarden.com/2003/05/how-to-pass-parameters-components.html/comment-page-1#comment-440</link>

		<dc:creator><![CDATA[Jonas Galvez]]></dc:creator>
		<pubDate>Wed, 28 May 2003 02:52:01 +0000</pubDate>
		<guid isPermaLink="false">http://jessewarden.com/?p=153#comment-440</guid>

					<description><![CDATA[Btw... You could write:
if ( foo == null ) foo = bar; else foo = foo;

in 1 line too =)]]></description>
			<content:encoded><![CDATA[<p>Btw&#8230; You could write:<br />
if ( foo == null ) foo = bar; else foo = foo;</p>
<p>in 1 line too =)</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
