<?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: The Delegate Class]]></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 16:48:18 CST</lastBuildDate><ttl>20</ttl><item><title><![CDATA[Comment #1]]></title><link>http://www.actionscript.org/resources/articles/205/1/The-Delegate-Class/Page1.html#Comment8568</link><description><![CDATA[Can we pass a parameter while we are calling the function using Delegate class?

e.g.
Delegate.create(this, callfunction, "param1");

function callfunction(arg)
{
     trace(arg);
}

is this type of code valid? Can we pass parameters along with functiona name in Delegate class ?<br/><br/>
(Comment posted by Komal at 10:09 am, Wed 2nd Jan 2008)]]></description><author>no@spam.com (Komal)</author><pubDate><![CDATA[Wed, 02 Jan 2008 10:09:31 CST]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/205/1/The-Delegate-Class/Page1.html#Comment8568</guid></item><item><title><![CDATA[Comment #2]]></title><link>http://www.actionscript.org/resources/articles/205/1/The-Delegate-Class/Page1.html#Comment8870</link><description><![CDATA[Komal,
use this:

var object:Array=[this,param1,param2];
Delegate.create(object,callfunction);

function callfunction()
{
//this[0] will hold the previous this reference
trace(this[1]);  //param1
trace(this[2]);  //param2
}

If there is a better way please someone tell me

CHeers

<br/><br/>
(Comment posted by Luis at 9:26 am, Tue 15th Jan 2008)]]></description><author>no@spam.com (Luis)</author><pubDate><![CDATA[Tue, 15 Jan 2008 09:26:43 CST]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/205/1/The-Delegate-Class/Page1.html#Comment8870</guid></item><item><title><![CDATA[Comment #3]]></title><link>http://www.actionscript.org/resources/articles/205/1/The-Delegate-Class/Page1.html#Comment12147</link><description><![CDATA[the delegate class can use in flash 8 ?

tks
-yessy-<br/><br/>
(Comment posted by yessy at 8:38 pm, Tue 21st Oct 2008)]]></description><author>no@spam.com (yessy)</author><pubDate><![CDATA[Tue, 21 Oct 2008 20:38:50 CDT]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/205/1/The-Delegate-Class/Page1.html#Comment12147</guid></item></channel></rss>