home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
404 Jogos
/
CLJG.iso
/
Esportes
/
CrossingCup.swf
/
scripts
/
__Packages
/
com
/
bourre
/
commands
/
Delegate.as
< prev
Wrap
Text File
|
2007-12-11
|
2KB
|
69 lines
class com.bourre.commands.Delegate implements com.bourre.transitions.IFrameListener, com.bourre.commands.Command
{
function Delegate(o, f)
{
this._o = o;
this._f = f;
this._a = arguments.splice(2);
this._fProxy = Function(com.bourre.commands.Delegate.create.apply(this,[this._o].concat([this._f],this._a)));
}
function handleEvent(e)
{
return this._f.apply(this._o,[e].concat(this._a));
}
static function create(o, f)
{
var _loc2_ = function()
{
var _loc3_ = arguments.callee.t;
var _loc2_ = arguments.callee.f;
var _loc4_ = arguments.concat(arguments.callee.a);
return _loc2_.apply(_loc3_,_loc4_);
};
_loc2_.t = o;
_loc2_.f = f;
_loc2_.a = arguments.splice(2);
return _loc2_;
}
function getScope()
{
return this._o;
}
function getFunction()
{
return this._fProxy;
}
function callFunction()
{
return this._fProxy();
}
function execute(e)
{
this._fProxy();
}
function setArguments()
{
if(arguments.length > 0)
{
this._a = arguments;
this._fProxy.a = this._a;
}
}
function addArguments()
{
if(arguments.length > 0)
{
this._a = this._a.concat(arguments);
this._fProxy.a = this._a;
}
}
function toString()
{
return com.bourre.log.PixlibStringifier.stringify(this);
}
function onEnterFrame()
{
this._fProxy();
}
}