<?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: EventBroadcaster for Director</title>
	<atom:link href="http://jessewarden.com/2003/12/eventbroadcaster-for-director.html/feed" rel="self" type="application/rss+xml" />
	<link>http://jessewarden.com/2003/12/eventbroadcaster-for-director.html</link>
	<description>A blog on software development, technology, games &#038; movies.</description>
	<pubDate>Wed, 09 Jul 2008 03:55:35 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>By: JesterXL</title>
		<link>http://jessewarden.com/2003/12/eventbroadcaster-for-director.html#comment-1057</link>
		<dc:creator>JesterXL</dc:creator>
		<pubDate>Tue, 09 Dec 2003 16:20:24 +0000</pubDate>
		<guid isPermaLink="false">http://jessewarden.com/?p=346#comment-1057</guid>
		<description>I didn't use a list because I didn't remember the docs saying that it didn't cause an error.  If that's the case, then schweeet!!!  Thanks for that.

If you want tabbing, write your comment in notepad, and paste in here, then wrap it with "pre" tags.
</description>
		<content:encoded><![CDATA[<p>I didn&#8217;t use a list because I didn&#8217;t remember the docs saying that it didn&#8217;t cause an error.  If that&#8217;s the case, then schweeet!!!  Thanks for that.</p>
<p>If you want tabbing, write your comment in notepad, and paste in here, then wrap it with &#8220;pre&#8221; tags.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Krxtopher</title>
		<link>http://jessewarden.com/2003/12/eventbroadcaster-for-director.html#comment-1056</link>
		<dc:creator>Krxtopher</dc:creator>
		<pubDate>Tue, 09 Dec 2003 16:16:35 +0000</pubDate>
		<guid isPermaLink="false">http://jessewarden.com/?p=346#comment-1056</guid>
		<description>Jesse, you might be interested in knowing that you can simplify your broadcastMessage code. If you use a list in a call() method instead of a single object reference, it will send your event message to all script objects in that list. It has the added benefit of NOT causing an error if one of those script instances doesn't have a handler for the event you're sending, thus eliminating the need to check for the handler as you're doing above.

The new simplified code would look like this:

===&#62;

on broadcastMessage me, msg

      l = paramCount() 
      a = [] 
      repeat with i = 2 to l 
            a.append(param(i)) 
      end repeat 

      call(Symbol(msg), pListeners, a) 

end

===

P.S. Bummer that these comments don't support ANY indenting!!!!</description>
		<content:encoded><![CDATA[<p>Jesse, you might be interested in knowing that you can simplify your broadcastMessage code. If you use a list in a call() method instead of a single object reference, it will send your event message to all script objects in that list. It has the added benefit of NOT causing an error if one of those script instances doesn&#8217;t have a handler for the event you&#8217;re sending, thus eliminating the need to check for the handler as you&#8217;re doing above.</p>
<p>The new simplified code would look like this:</p>
<p>===&gt;</p>
<p>on broadcastMessage me, msg</p>
<p>      l = paramCount()<br />
      a = []<br />
      repeat with i = 2 to l<br />
            a.append(param(i))<br />
      end repeat </p>
<p>      call(Symbol(msg), pListeners, a) </p>
<p>end</p>
<p>===</p>
<p>P.S. Bummer that these comments don&#8217;t support ANY indenting!!!!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
