<?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"
	>
<channel>
	<title>Comments on: Delegate version 1.0.1</title>
	<atom:link href="http://dynamicflash.com/2005/05/delegate-version-101/feed/" rel="self" type="application/rss+xml" />
	<link>http://dynamicflash.com/2005/05/delegate-version-101/</link>
	<description>Confessions of a serial code abuser</description>
	<pubDate>Wed, 20 Aug 2008 18:45:33 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: Steve</title>
		<link>http://dynamicflash.com/2005/05/delegate-version-101/#comment-1216</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Wed, 22 Feb 2006 13:06:35 +0000</pubDate>
		<guid isPermaLink="false">http://dynamicflash.com/2005/05/delegate-version-101/#comment-1216</guid>
		<description>Maurits: Umm... that's a very simple version of the Delegate class, though you've needlessly extended Object on a class that has only static methods. 

However, it doesn't serve the same purpose as my delegate class, which is designed to allow you to pass extra arguments to the delegated function and also pass a reference to the delegate itself to make it easy, for example, to remove delegated event handlers.

Please see &lt;a href="http://dynamicflash.com/2005/02/delegate-class-refined"&gt;Delegate class refined&lt;/a&gt; for more information.</description>
		<content:encoded><![CDATA[<p>Maurits: Umm&#8230; that&#8217;s a very simple version of the Delegate class, though you&#8217;ve needlessly extended Object on a class that has only static methods. </p>
<p>However, it doesn&#8217;t serve the same purpose as my delegate class, which is designed to allow you to pass extra arguments to the delegated function and also pass a reference to the delegate itself to make it easy, for example, to remove delegated event handlers.</p>
<p>Please see <a href="http://dynamicflash.com/2005/02/delegate-class-refined">Delegate class refined</a> for more information.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maurits van der Schee</title>
		<link>http://dynamicflash.com/2005/05/delegate-version-101/#comment-1215</link>
		<dc:creator>Maurits van der Schee</dc:creator>
		<pubDate>Wed, 22 Feb 2006 12:59:27 +0000</pubDate>
		<guid isPermaLink="false">http://dynamicflash.com/2005/05/delegate-version-101/#comment-1215</guid>
		<description>class Delegate extends Object
{
    static function create(obj:Object, func:Function):Function
    {
        return function () { return(func.apply(obj, arguments)); };
    }
}</description>
		<content:encoded><![CDATA[<p>class Delegate extends Object<br />
{<br />
    static function create(obj:Object, func:Function):Function<br />
    {<br />
        return function () { return(func.apply(obj, arguments)); };<br />
    }<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MAB Blog &#187; Blog Archive &#187; Determining When A MC Is Initialized</title>
		<link>http://dynamicflash.com/2005/05/delegate-version-101/#comment-377</link>
		<dc:creator>MAB Blog &#187; Blog Archive &#187; Determining When A MC Is Initialized</dc:creator>
		<pubDate>Thu, 21 Jul 2005 12:57:40 +0000</pubDate>
		<guid isPermaLink="false">http://dynamicflash.com/2005/05/delegate-version-101/#comment-377</guid>
		<description>[...] The initBroadcaster() method is from my Object Prototypes and simple initialized the object that the method is applied on as a EventDispatcher. If you dont know anything about EventDispatcher or listeners, I suggest you learn about them; they are one of the most helpful things in AS, this tutorial should give you what you need to know about EventDispatcher if you haven&#8217;t used it already. So after initializing the box MC as a EventDispatcher I added a function listener to the &#8220;inited&#8221; event that will be broadcasted by the box once it is fully initialized. The function is executed in the scope of the box, because of this the &#8216;this&#8217; variable equals the box MC, thus this.play() will cause the box MC to start playing. If you didn&#8217;t want that function to exact in the boxes scope you can use the Delegate class to execute a function is different scope (Flash 7.2 also comes with a Delegate class but Steve&#8217;s Delegate class that I linked to is better). If you want to learn more about Delegates and how to use them read this tutorial. You can get both the updated animation initialization and the textfield initialization files here. [...]</description>
		<content:encoded><![CDATA[<p>[...] The initBroadcaster() method is from my Object Prototypes and simple initialized the object that the method is applied on as a EventDispatcher. If you dont know anything about EventDispatcher or listeners, I suggest you learn about them; they are one of the most helpful things in AS, this tutorial should give you what you need to know about EventDispatcher if you haven&#8217;t used it already. So after initializing the box MC as a EventDispatcher I added a function listener to the &#8220;inited&#8221; event that will be broadcasted by the box once it is fully initialized. The function is executed in the scope of the box, because of this the &#8216;this&#8217; variable equals the box MC, thus this.play() will cause the box MC to start playing. If you didn&#8217;t want that function to exact in the boxes scope you can use the Delegate class to execute a function is different scope (Flash 7.2 also comes with a Delegate class but Steve&#8217;s Delegate class that I linked to is better). If you want to learn more about Delegates and how to use them read this tutorial. You can get both the updated animation initialization and the textfield initialization files here. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: adampasz</title>
		<link>http://dynamicflash.com/2005/05/delegate-version-101/#comment-342</link>
		<dc:creator>adampasz</dc:creator>
		<pubDate>Sat, 14 May 2005 13:45:14 +0000</pubDate>
		<guid isPermaLink="false">http://dynamicflash.com/2005/05/delegate-version-101/#comment-342</guid>
		<description>Just trying it our with F.A.M.E.  Works like a charm.  Thanks!</description>
		<content:encoded><![CDATA[<p>Just trying it our with F.A.M.E.  Works like a charm.  Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
