topical media & game development
actionscript-video-com-flashconnections-util-Proxy.ax
actionscript-video-com-flashconnections-util-Proxy.ax
[swf]
flex
converted to AS3 from an AS2 class written by Joey Lott
package com.flashconnections.util
{
public class @ax-actionscript-video-com-flashconnections-util-Proxy
{
public static function create(targ:Object, func:Function):Function
{
var params:Array = [];
for (var i:Number = 2; i < arguments.length; i++) params[i-2] = arguments[i];
var proxy:Function = function ():* {
var actual:Array = arguments.concat(params);
actual.push(arguments.callee); //debatable?
return func.apply(targ, actual);
};
return proxy;
}
}
}
(C) Æliens
27/08/2009
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.