Value::InvokeSelf

Value::InvokeSelf
SF_INLINE bool InvokeSelf(Value* presult, const Value* pargs, UPInt nargs);
SF_INLINE bool InvokeSelf(Value* presult = NULL);
Description

InvokeSelf calls a closure object. A closure object consists of a reference to a context along with a reference to a method of that context. Calling this method on a closure will invoke the method with the correct context. Only supported in ActionScript 3.

Parameters
Parameters 
Description 
Value* presult 
Holder for the return value from the called method. presult can be null if no return value is desired. 
const Value* pargs 
An array of arguments that will be passed to the method. 
UPInt nargs 
Number of arguments that will be passed to the method. 
Return Value

True if the method was invoked with no exceptions thrown otherwise false.