Gnash
0.8.10
|
This class is used to queue a function call action. More...
#include <ExecutableCode.h>
Public Member Functions | |
DelayedFunctionCall (DisplayObject *target, as_object *obj, const ObjectURI &name, const as_value &arg1, const as_value &arg2) | |
virtual void | execute () |
virtual void | setReachable () const |
Mark reachable resources (for the GC) |
This class is used to queue a function call action.
Exact use is to queue onLoadInit, which should be invoked after actions of in first frame of a loaded movie are executed. Since those actions are queued the only way to execute something after them is to queue the function call as well.
The class might be made more general and accessible outside of the MovieClipLoader class. For now it only works for calling a function with a two argument.
gnash::DelayedFunctionCall::DelayedFunctionCall | ( | DisplayObject * | target, |
as_object * | obj, | ||
const ObjectURI & | name, | ||
const as_value & | arg1, | ||
const as_value & | arg2 | ||
) | [inline] |
virtual void gnash::DelayedFunctionCall::execute | ( | ) | [inline, virtual] |
Implements gnash::ExecutableCode.
virtual void gnash::DelayedFunctionCall::setReachable | ( | ) | const [inline, virtual] |
Mark reachable resources (for the GC)
Reimplemented from gnash::ExecutableCode.
References gnash::GcResource::setReachable(), and gnash::as_value::setReachable().