<?xml version="1.0" encoding="iso-8859-1"?><rss version="2.0">
<channel><title><![CDATA[ActionScript.org Flash, Flex and ActionScript Resources - Comments for article: ASBroadcaster]]></title><link>http://www.actionscript.org/resources</link><description /><language>en-us</language><copyright><![CDATA[http://www.actionscript.org/resources]]></copyright><generator>N/A</generator><webMaster>general.redirect@gmail.com</webMaster><lastBuildDate>Sat, 21 Nov 2009 10:36:00 CST</lastBuildDate><ttl>20</ttl><item><title><![CDATA[Comment #1]]></title><link>http://www.actionscript.org/resources/articles/116/1/ASBroadcaster/Page1.html#Comment8331</link><description><![CDATA[ if the obj passed in doesn't exist, you'll get an endless loop:

SBroadcaster.removeListener = function(obj) { var a = this._listeners; var i = this._listeners.length; while (--i) {  if (a[i] == obj) {   a.splice(i, 1);   return true;  } } return false;};

 a simple for loop will do.<br/><br/>
(Comment posted by Ben at 10:12 am, Wed 19th Dec 2007)]]></description><author>no@spam.com (Ben)</author><pubDate><![CDATA[Wed, 19 Dec 2007 10:12:02 CST]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/116/1/ASBroadcaster/Page1.html#Comment8331</guid></item></channel></rss>