<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: AS2.0 Delegate.create with parameters</title>
	<atom:link href="http://blog.sitedaniel.com/2008/08/as20-delegatecreate-with-parameters/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sitedaniel.com/2008/08/as20-delegatecreate-with-parameters/</link>
	<description>Flash, Flex and AIR development</description>
	<lastBuildDate>Fri, 27 Aug 2010 07:52:28 -0700</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: j.c Pimentel</title>
		<link>http://blog.sitedaniel.com/2008/08/as20-delegatecreate-with-parameters/comment-page-1/#comment-680</link>
		<dc:creator>j.c Pimentel</dc:creator>
		<pubDate>Sun, 02 May 2010 08:03:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sitedaniel.com/?p=63#comment-680</guid>
		<description>Hi thanks for this but this code doesn&#039;t work for me ( I&#039;m using Flash Cs4 Portable version, using as exportation parameter flash player 9 and as2 )...this code did works for you?, what flash version do you have ? I was trying to implements this code on a textfield events (focus and kill) and i was trying to pass some parameters and the first parameter that i got was always the lattest selected textfield..  So anyway using this code as template i implement this code that i post here, i don&#039;t know if this code its okey (but again) works really well for me , i dont know if this works for you as well as your original code posted here.. Anyway Thank&#039;s again for post this code.

public static function DelegateCreate(t:Object, f:Function,args:Array):Function
    {       
        return  function():Void
        {
			//i prefer pass the args as one explicit array. just for practical reasons.
			if ((args == undefined) &#124;&#124; (args == null))
				args=[]
			//I just change the order of the arguments.! First the arguments that i pass and after well the rest.!			
            var _newArgs:Array = args.concat(arguments);			
            f.apply(t, args);
        };      
    }</description>
		<content:encoded><![CDATA[<p>Hi thanks for this but this code doesn&#8217;t work for me ( I&#8217;m using Flash Cs4 Portable version, using as exportation parameter flash player 9 and as2 )&#8230;this code did works for you?, what flash version do you have ? I was trying to implements this code on a textfield events (focus and kill) and i was trying to pass some parameters and the first parameter that i got was always the lattest selected textfield..  So anyway using this code as template i implement this code that i post here, i don&#8217;t know if this code its okey (but again) works really well for me , i dont know if this works for you as well as your original code posted here.. Anyway Thank&#8217;s again for post this code.</p>
<p>public static function DelegateCreate(t:Object, f:Function,args:Array):Function<br />
    {<br />
        return  function():Void<br />
        {<br />
			//i prefer pass the args as one explicit array. just for practical reasons.<br />
			if ((args == undefined) || (args == null))<br />
				args=[]<br />
			//I just change the order of the arguments.! First the arguments that i pass and after well the rest.!<br />
            var _newArgs:Array = args.concat(arguments);<br />
            f.apply(t, args);<br />
        };<br />
    }</p>
]]></content:encoded>
	</item>
</channel>
</rss>
