<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Mandatory Argument Types</title>
	<link>http://www.learningactionscript3.com/2007/11/21/mandatory-argument-types/</link>
	<description>A digital supplement for the O'Reilly book</description>
	<pubDate>Sat, 04 Feb 2012 06:14:10 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<item>
		<title>By: felisan</title>
		<link>http://www.learningactionscript3.com/2007/11/21/mandatory-argument-types/#comment-3154</link>
		<dc:creator>felisan</dc:creator>
		<pubDate>Tue, 16 Jun 2009 09:38:27 +0000</pubDate>
		<guid>http://www.learningactionscript3.com/2007/11/21/mandatory-argument-types/#comment-3154</guid>
		<description>hi.
great stuff.

so tell me, when doing this:
stage.addEventListener(MouseEvent.CLICK, onClick, false, 0, true);

instead of this:
stage.addEventListener(MouseEvent.CLICK, onClick);

will this be the proper way of removing an eventListener then:
stage.removeEventListener(MouseEvent.CLICK, onClick);

or do I need to add more parameters?


thanks
felisan</description>
		<content:encoded><![CDATA[<p>hi.<br />
great stuff.</p>
<p>so tell me, when doing this:<br />
stage.addEventListener(MouseEvent.CLICK, onClick, false, 0, true);</p>
<p>instead of this:<br />
stage.addEventListener(MouseEvent.CLICK, onClick);</p>
<p>will this be the proper way of removing an eventListener then:<br />
stage.removeEventListener(MouseEvent.CLICK, onClick);</p>
<p>or do I need to add more parameters?</p>
<p>thanks<br />
felisan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rich</title>
		<link>http://www.learningactionscript3.com/2007/11/21/mandatory-argument-types/#comment-1967</link>
		<dc:creator>Rich</dc:creator>
		<pubDate>Thu, 12 Feb 2009 06:23:47 +0000</pubDate>
		<guid>http://www.learningactionscript3.com/2007/11/21/mandatory-argument-types/#comment-1967</guid>
		<description>@FD, yes. Just move the null from the function call (cited in the post) to the default value of the parameter:

&lt;pre class="code"&gt;
function display(n:String=null) {
    if (n==null) {
        trace("Welcome, Guest");
    } else {
        trace("Welcome, ", n);
    }
}

display()
//display("Mike");
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>@FD, yes. Just move the null from the function call (cited in the post) to the default value of the parameter:</p>
<pre class="code">
function display(n:String=null) {
    if (n==null) {
        trace("Welcome, Guest");
    } else {
        trace("Welcome, ", n);
    }
}

display()
//display("Mike");
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Flash Duniya</title>
		<link>http://www.learningactionscript3.com/2007/11/21/mandatory-argument-types/#comment-1966</link>
		<dc:creator>Flash Duniya</dc:creator>
		<pubDate>Thu, 12 Feb 2009 06:15:22 +0000</pubDate>
		<guid>http://www.learningactionscript3.com/2007/11/21/mandatory-argument-types/#comment-1966</guid>
		<description>Is there any code for call this kind of functionality:

&lt;pre class="code"&gt;
function display(n:String) {
	if (n==null) {
		trace("Welcoe Guest");
	} else {
		trace("welcome: " n);
	}
}

display();//It's showing error
//display("Mike"); It's working fine
&lt;/pre&gt;

Thanks,
Flash Duniya</description>
		<content:encoded><![CDATA[<p>Is there any code for call this kind of functionality:</p>
<pre class="code">
function display(n:String) {
	if (n==null) {
		trace("Welcoe Guest");
	} else {
		trace("welcome: " n);
	}
}

display();//It's showing error
//display("Mike"); It's working fine
</pre>
<p>Thanks,<br />
Flash Duniya</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rich</title>
		<link>http://www.learningactionscript3.com/2007/11/21/mandatory-argument-types/#comment-154</link>
		<dc:creator>Rich</dc:creator>
		<pubDate>Fri, 18 Jul 2008 20:56:08 +0000</pubDate>
		<guid>http://www.learningactionscript3.com/2007/11/21/mandatory-argument-types/#comment-154</guid>
		<description>Arjan, hang in there. It's an uphill climb, but you'll soon find that the benefits of AS3 vastly outweigh the extra work required to get going again.</description>
		<content:encoded><![CDATA[<p>Arjan, hang in there. It&#8217;s an uphill climb, but you&#8217;ll soon find that the benefits of AS3 vastly outweigh the extra work required to get going again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arjan</title>
		<link>http://www.learningactionscript3.com/2007/11/21/mandatory-argument-types/#comment-153</link>
		<dc:creator>Arjan</dc:creator>
		<pubDate>Fri, 18 Jul 2008 20:24:34 +0000</pubDate>
		<guid>http://www.learningactionscript3.com/2007/11/21/mandatory-argument-types/#comment-153</guid>
		<description>THX for this one... Been banging my head against a wall for the last few days trying to figure out how to get a function within a function without this stupid error.

Coming from ASM and Basic on MSX starting to program again after so many years is more troublesome that I thought.</description>
		<content:encoded><![CDATA[<p>THX for this one&#8230; Been banging my head against a wall for the last few days trying to figure out how to get a function within a function without this stupid error.</p>
<p>Coming from ASM and Basic on MSX starting to program again after so many years is more troublesome that I thought.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

